Use travis to deploy the node project
Everything is normal. Finally, I added git pull -u origin master
to the after_success
hook to synchronize the files on github to me server. But the travis log shows already up-to-date
. I have updated it, and the command line to connect to the server git pull -u origin master
can download the file. The screenshot is as follows, please give me some advice~
### travis.yml
language: node_js
node_js:
- '6.9.5'
- '7.5.0'
before_script:
- npm install -d
script: webpack && gulp minify
after_success: git pull -u origin master
Screenshot of travis ci log
Command line git pull successful screenshot
怪我咯2017-05-31 10:41:58
What’s the problem?
travis ci does not git pull
from github to the cloud server, but uses git pull
to pull the code from github pull
to the server where travis is located.