Home  >  Q&A  >  body text

node.js - `git pull` from github to cloud server using travis ci

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

我想大声告诉你我想大声告诉你2677 days ago580

reply all(1)I'll reply

  • 怪我咯

    怪我咯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.

    reply
    0
  • Cancelreply