Add a staging environment

This commit is contained in:
Leonard Smith 2021-04-08 14:24:03 -05:00
parent 1296493073
commit 9b253c9182
2 changed files with 19 additions and 1 deletions

View File

@ -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') {

View File

@ -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;
};