-
Notifications
You must be signed in to change notification settings - Fork 29
/
eco.config.js
28 lines (28 loc) · 1.13 KB
/
eco.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const secretInfo = require('./secret');
module.exports = {
deploy: {
// "production" is the environment name
production: {
// SSH key path, default to $HOME/.ssh
...secretInfo,
// SSH options with no command-line flag, see 'man ssh'
// can be either a single string or an array of strings
ssh_options: 'StrictHostKeyChecking=no',
// GIT remote/branch
ref: 'origin/test',
// GIT remote
repo: 'https://github.com/vitelabs/vite-web-wallet.git',
// path in the server
path: '/home/ubuntu/wallet',
// Pre-setup command or path to a script on your local machine
// // Post-setup commands or path to a script on the host machine
// // eg: placing configurations in the shared dir etc
'post-setup': 'ls -la',
// pre-deploy action
// pre-deploy-local: "echo 'This is a local executed command'"
// post-deploy action
'post-deploy':
'npm install && NODE_ENV=production npm run build'
}
}
};