Skip to content

Commit

Permalink
Add sequelstring whitelabel deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmosgenius committed Dec 24, 2018
1 parent cf69789 commit befaa7d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Expand Up @@ -29,6 +29,7 @@ jobs:
if [ "${CIRCLE_BRANCH}" == "master" ]; then
npm run deploy
npm run deploy:sequelstring
curl https://api.rollbar.com/api/1/deploy/ \
-F access_token=$ROLLBAR_ACCESS_TOKEN \
Expand Down
25 changes: 21 additions & 4 deletions config/deploy.js
Expand Up @@ -62,13 +62,30 @@ module.exports = function(deployTarget) {
};
}

if (deployTarget === 'whitelabel') {
ENV.build.environment = 'whitelabel';
if (deployTarget === 'sequelstring') {
ENV.build.environment = 'sequelstring';

process.env["ENTERPRISE"] = true
process.env["WHITELABEL_ENABLED"] = true
process.env["WHITELABEL_LOGO"] = "https://s3.amazonaws.com/appknox-production-public/sequelstring_logo.jpg"
process.env["WHITELABEL_NAME"] = "Sequelstring Solutions"
process.env["WHITELABEL_THEME"] = "light"

ENV.s3 = {
bucket: process.env.SEQUELSTRING_AWS_BUCKET,
region: process.env.AWS_REGION
};

ENV['s3-index'] = {
// bucket: process.env.SEQUELSTRING_AWS_BUCKET,
// region: process.env.AWS_REGION,
// allowOverwrite: true
};

// configure other plugins for production deploy target here

ENV.cloudfront = {
distribution: 'E1SR2PB8XTR9RC',
objectPaths: ['/*']
distribution: 'E1SR2PB8XTR9RC'
};
}

Expand Down
16 changes: 8 additions & 8 deletions config/environment.js
Expand Up @@ -9,7 +9,6 @@ module.exports = function(environment) {
var host = process.env.IRENE_API_HOST || 'https://api.appknox.com';
var socketPath = process.env.IRENE_API_SOCKET_PATH || 'https://socket.appknox.com';
var enableSSO = process.env.IRENE_ENABLE_SSO || false;

var ENV = {
version: Date.now(),
isDevknox: false,
Expand Down Expand Up @@ -260,12 +259,6 @@ module.exports = function(environment) {
};
}

if (environment === 'whitelabel') {
ENV.enableIntercom = false;
ENV.enablePendo = true; //TODO: fix this.
ENV.enableInspectlet = false;
ENV.enableCSB = false;
}

if (environment === 'testing') {
ENV['ember-cli-mirage'] = {
Expand Down Expand Up @@ -312,7 +305,14 @@ module.exports = function(environment) {
ENV.APP.autoboot = false;
}

if (environment === 'whitelabel') {
if (
environment === 'whitelabel' ||
environment === 'sequelstring'
) {
ENV.enableIntercom = false;
ENV.enablePendo = true; //TODO: fix this.
ENV.enableInspectlet = false;
ENV.enableCSB = false;
ENV.isEnterprise = process.env.ENTERPRISE;
ENV.whitelabel.enabled = (process.env.WHITELABEL_ENABLED || '').toString().toLowerCase() === 'true';
if (ENV.whitelabel.enabled) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -17,7 +17,8 @@
"test": "ember test",
"postinstall": "bower install",
"deploy": "ember deploy production --verbose=true --activate=true --show-progress=true",
"deploy:staging": "ember deploy staging --verbose=true --activate=true --show-progress=true"
"deploy:staging": "ember deploy staging --verbose=true --activate=true --show-progress=true",
"deploy:sequelstring": "ember deploy sequelstring --verbose=true --activate=true --show-progress=true"
},
"devDependencies": {
"bower": "^1.8.2",
Expand Down

0 comments on commit befaa7d

Please sign in to comment.