-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap out Travis with CircleCI - Change .env to a commented js file
- Loading branch information
Showing
14 changed files
with
765 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
version: 2.1 | ||
orbs: | ||
node: circleci/node@2.1.1 | ||
gh-pages: sugarshin/gh-pages@0.0.6 | ||
executors: | ||
buildpack_deps: | ||
docker: | ||
- image: circleci/buildpack-deps | ||
jobs: | ||
build: | ||
executor: node/default | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: 12.16.3 | ||
- run: | | ||
node --version | ||
mkdir -p config && touch $_/local.js | ||
echo $FULL_CONFIG > ./config/local.js | ||
- node/install-packages | ||
- run: npm run build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- dist | ||
deploy-artisol: | ||
working_directory: ~/leopard | ||
docker: | ||
- image: instrumentisto/rsync-ssh | ||
steps: | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "5b:02:54:8b:a5:25:c3:91:88:6e:82:d5:1d:4a:43:4a" | ||
- attach_workspace: | ||
at: ~/leopard/dist | ||
- deploy: | ||
command: | | ||
rsync -va -r -e "ssh -o StrictHostKeyChecking=no" --delete-after ./dist/ $SSH_USER@$SSH_HOST:$TARGET_DIR | ||
deploy-gh-pages: | ||
executor: buildpack_deps | ||
working_directory: ~/leopard | ||
steps: | ||
- run: | | ||
mkdir -p ~/.ssh | ||
echo "Host *" > ~/.ssh/config | ||
echo " StrictHostKeyChecking no" >> ~/.ssh/config | ||
- attach_workspace: | ||
at: ~/leopard/dist | ||
- gh-pages/deploy: | ||
ssh-fingerprints: "5b:02:54:8b:a5:25:c3:91:88:6e:82:d5:1d:4a:43:4a" | ||
|
||
workflows: | ||
build-deploy: | ||
jobs: | ||
- build: | ||
context: leopard-presales-ctx | ||
- deploy-artisol: | ||
context: leopard-presales-ctx | ||
requires: | ||
- build | ||
- deploy-gh-pages: | ||
requires: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,6 @@ secrets.tar | |
deploy_rsa | ||
deploy_rsa.pub | ||
|
||
backup | ||
backup | ||
|
||
config/local.js |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
const config = { | ||
assets: { | ||
compressCss: true, // gzip and brotli compress CSS | ||
compressJavascript: true, // gzip and brotli compress JavaScript | ||
produceSourceMap: false // in production you probably want to disable | ||
}, | ||
demoMode: true, // true = stores configs in local storage. In production it should be false | ||
/** | ||
* https://www.livechat.com/ integration - live chat handover | ||
*/ | ||
liveChatInc: { | ||
agentAssist: { | ||
/** | ||
* Server URL for creating agent assist canned responses - | ||
* https://github.com/jolzee/agent-assist-livechat-server-leopard | ||
*/ | ||
serverUrl: "" | ||
}, | ||
key: "" // livechat.com license key | ||
}, | ||
location: { | ||
/** | ||
* if you want to capture location information from the user then | ||
* provide a https://locationiq.com/ api key | ||
* https://jolzee.gitbook.io/leopard/configuration/response-options/field-types#location-information | ||
*/ | ||
locationIq: { | ||
key: "" | ||
}, | ||
login: { | ||
/** | ||
* Capture and send geo location information at login. | ||
* Uses both https://ipapi.co/ip/ & http://www.geoplugin.net | ||
* This setting can be costly on first run. | ||
*/ | ||
sendAtLogin: false, // false = diabled, true = tries to obtain geo before greeting | ||
/** | ||
* Jaguar provides rest endpoint to proxy both the acquisition of the user's | ||
* IP and their geo location. This speeds up the whole process and deals with | ||
* any potential CORS issues. | ||
* https://github.com/jolzee/jaguar | ||
*/ | ||
serviceUrls: { | ||
geo: "", // https://my-jaguar.com/utils/geo | ||
ip: "" // https://my-jaguar.com/utils/ip | ||
} | ||
} | ||
}, | ||
/** | ||
* Leopard can send debug information to both Log Rocket and Sentry. | ||
* If let absent nothing is sent. | ||
*/ | ||
logging: { | ||
logRocket: { | ||
key: "" // https://logrocket.com/ | ||
}, | ||
sentry: { | ||
key: "" // https://sentry.io/ | ||
} | ||
}, | ||
/** | ||
* Only applies when Leopard is embedded in production: | ||
* https://jolzee.gitbook.io/leopard/embedding | ||
*/ | ||
productionEmbed: { | ||
initialStateOpen: false, // should leopard automatically open on first load | ||
killSessionWhenClosed: false, // should the conversational session be closed when x is clicked | ||
showCloseButton: true // allows you to hide the close button | ||
}, | ||
/** | ||
* Social Authentication is provided through https://firebase.google.com/ | ||
* Empty values signals no authentication | ||
*/ | ||
socialAuthentication: { | ||
firebase: { | ||
apiKey: "", | ||
authDomain: "", | ||
databaseUrl: "", // Firebase Realtime Database | ||
messagingSenderId: "", | ||
microsoft: { | ||
domainHint: "", // mydomain.com | ||
tenant: "" // Azure AD Tenant ID | ||
}, | ||
projectId: "", // firebase project id | ||
providers: ["microsoft", "facebook", "google", "github"], // login and register will only show buttons for these providers | ||
storageBucket: "" | ||
} | ||
}, | ||
solution: { | ||
location: { | ||
placeInStaticFolder: false, // false = loaded client side via JavaScript ; true = .env.solution.json is placed in /static/config.json | ||
sourceFile: ".env.solution.json" // relavtive path to your solution(s) config file - probably don't need to change | ||
} | ||
}, | ||
ui: { | ||
configArea: { | ||
shareLink: { | ||
kuttItApiKey: "" // Optional - URL Shorener https://kutt.it/ can shortner shared links generated in the config area | ||
} | ||
}, | ||
hideConfigMenu: false, // true = Set in production | false when in demo/development mode | ||
hideTeneoBranding: false // optionally hide Teneo Branding | ||
} | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.