- Copy
deploy.sh
tobin/deploy
and mark it as executable - Create an .env file with your config settings (see below)
- Make sure you have your ssh-config set up to forward your ssh keys.
Run bin/deploy
!
Add these to an .env file:
# deploy to:
SERVER=server.com
APP=app_name
DEPLOY=/srv/$APP
ENVIRONMENT=production
# clone source from:
REPO=ssh://[email protected]/username/repo.git
BRANCH=master
If you want to deploy a branch, just call bin/deploy --rev=branch_name
.
This is really just a proof of concept. Extra flags could be added and more functions could be to come. But this proves how easy it is to start.
Looking good. If you add in some database migration handling it'd cover most deployment scenarios.