Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
travis deployment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dadaphl committed Jan 22, 2018
1 parent 1adfa42 commit 5ee5755
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
@@ -0,0 +1,26 @@
language: node_js
node_js:
- '8'
install:
- npm install
script:
- npm run build
deploy:
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/explorer.aepps.com/
on:
branch: master
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/stage-explorer.aepps.com/
on:
branch: stage
before_install:
- openssl aes-256-cbc -K $encrypted_90a9ca14a0f9_key -iv $encrypted_90a9ca14a0f9_iv
-in deploy.enc -out deploy -d
- eval "$(ssh-agent -s)"
- chmod 600 deploy
- ssh-add deploy
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
Binary file added deploy.enc
Binary file not shown.

0 comments on commit 5ee5755

Please sign in to comment.