P
P
Pavel2016-06-02 03:31:13
gulp.js
Pavel, 2016-06-02 03:31:13

What is the best way to port a test server to production using GULP?

There is a test server. Wrote gulp-tasks.

  1. Pull git
  2. Compiling .less
  3. Minifying .css and .tmpl
  4. Babel'izirovat .js
  5. Uglyfy'ing .js
  6. Adding sourcemaps
  7. Copy to /var/http

Now this case needs to be somehow sent to the production server. Hence the questions:
1. Where is it better to run the command? on test, or on combat?
2. Should I use a git repository as an intermediary? (on test push, on combat pull)
3. What is the best way to copy? By ftp? How can I explain to gulp that it does not copy all the files every time, but only the ones that have changed? (the standard since from 4.0 won't help here)
PS: I'm a beginner in the gallop, so don't hit with stones =)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question