Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (22 sloc) 483 Bytes
language: node_js
branches:
only:
- master
node_js:
- '6'
before_install:
- openssl aes-256-cbc -K $encrypted_2c4c9a008ff2_key -iv $encrypted_2c4c9a008ff2_iv
-in deploy_rsa.enc -out deploy_rsa -d
addons:
ssh_known_hosts: 192.241.157.86
before_deploy:
- npm install -g pm2
- eval "$(ssh-agent -s)"
- chmod 600 $TRAVIS_BUILD_DIR/deploy_rsa
- ssh-add $TRAVIS_BUILD_DIR/deploy_rsa
deploy:
provider: script
skip_cleanup: true
script: npm run deploy
on:
branch: master