node.js - `git pull` from github to cloud server using travis ci
我想大声告诉你
我想大声告诉你 2017-05-31 10:39:58
0
1
613

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

我想大声告诉你
我想大声告诉你

reply all(1)
刘奇

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template