Source code at src/
Compiled code at dist/
- Setup git-ftp
url
user
password
syncroot
remote-root
- Setup
git-alias
, see example below.
My alias in project's local git, .git/config
:
[alias]
ftp-deploy = ftp push
deploy = "!git checkout $1 ;\
git merge develop;\
git push origin $1 ;\
git ftp-deploy;\
git checkout develop;\
:"
-
grunt
- triggers the watch task for js check -
git status
- check what files have changed and the current branch (make sure it's develop!) -
git commit
thengit push
- keep develop branch up-to-date
-
grunt build
- compile code intodist/
directory -
git commit
thengit push
- updates develop branch -
git deploy master
- updates master branch andgit-ftp
push to server