Add a staging environment
This commit is contained in:
parent
1296493073
commit
9b253c9182
|
@ -13,8 +13,19 @@ module.exports = function(deployTarget) {
|
|||
}
|
||||
|
||||
if (deployTarget === 'staging') {
|
||||
ENV.build.environment = 'production';
|
||||
ENV.build.environment = 'staging';
|
||||
// configure other plugins for staging deploy target here
|
||||
ENV['simply-ssh'] = {
|
||||
connection: {
|
||||
// parameter hash accepted by SSH2, see https://github.com/mscdex/ssh2 for details
|
||||
host: process.env.SSH_HOST,
|
||||
port: process.env.SSH_PORT,
|
||||
username: process.env.SSH_USER,
|
||||
privateKey: process.env.SSH_KEY
|
||||
},
|
||||
dir: '/home/onlin401/public_html/allgreektome/frontend/test/',
|
||||
keep: 5
|
||||
}
|
||||
}
|
||||
|
||||
if (deployTarget === 'production') {
|
||||
|
|
|
@ -58,5 +58,12 @@ module.exports = function (environment) {
|
|||
ENV.APP.hostUrl = 'http://backend.bibletranslationresources.org';
|
||||
}
|
||||
|
||||
if (environment === 'staging') {
|
||||
ENV.APP.hostUrl = 'http://backend.bibletranslationresources.org';
|
||||
ENV.APP.rootURL = 'http://bibletranslationresources.org/test/current/';
|
||||
ENV.APP.baseUrl = 'http://bibletranslationresources.org/test/current/';
|
||||
ENV.APP.locationType = 'hash';
|
||||
}
|
||||
|
||||
return ENV;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue