-
Create a unified project
mkdir ~/dev/parentProjectName && \ cd ~/dev/parentProjectName && \ git init && \ git submodule add git@github.com:orgName/projA.git projA && \ git submodule add git@github.com:orgName/projA.git projB
-
Check it in:
git add . && git commit -n -m "initial commit"
- Link the project filesystem for 2-way sync with your remote dev box:
-
git checkout develop
-
Create a directory on your local machine to house any and all projects meant for remote development:
mkdir -p ~/Dropbox/rDev
-
Wire the project on your machine to your local dropbox:
cd ~/dev/parentProjectName ln -s `pwd` ~/Dropbox/rDev/parentProjectName
-
Make sure the sync finishes. On remoteBox run:
dropbox status
or~/bin/dropbox.py status
-
Run any commands to deploy posxdata (refer to readme) on the remoteBox in your
ssh
session. -
You should also configure your remoteBox for this project specifically and avoid syncing folders that don't matter for remote editing:
cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projA/worker/node_modules/ && \ cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projA/api/node_modules/ && \ cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projA/api/npm-debug.log && \ cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projB/node_modules/ && \ cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projB/app/bower_components/ && \ cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projC/vendor/ && \ cd ~/Dropbox/ && ~/bin/dropbox.py exclude add rDev/parentProjectName/projC/docker/volumes/
-