.travis.yml
language: node_js
node_js:
- "8.9.1"
branchs:
only:
- master
cache:
apt: true
directories:
- node_modules
install:
- git pull
- rm -f package-lock.json && npm install
script:
- npm run build
before_install:
- openssl aes-256-cbc -K $encrypted_1db7356b8c0c_key -iv $encrypted_1db7356b8c0c_iv
-in id_rsa.enc -out ~/.ssh/id_rsa -d
after_success:
- chmod 600 ~/.ssh/id_rsa
- scp -o stricthostkeychecking=no -r ./dist/* travis@xxx.xx.xxx.xx:/var/www/mobile
to the last step
-r ./dist/* travis@xxx.xx.xxx.xx:/var/www/mobile
prompt that Permisson denied, does not have permission.
root@118.24.157.36
ask how to give travis users permission to write / var/www/mobile.