Use rsync to sync your project to server. Use syncd to automate it.
attaching installation process
- Install rsync
- Get syncd from https://github.com/codeasashu/syncd.git (branch: direction)
- copy syncd and watch.sh to /usr/local/bin so you can execute it directly in terminal
cp syncd /usr/local/bincp watch.sh /usr/local/bin