Skip to content

Instantly share code, notes, and snippets.

@coderanger
Created August 7, 2015 21:12
Show Gist options
  • Save coderanger/dcee07b11d748f742c6f to your computer and use it in GitHub Desktop.
Save coderanger/dcee07b11d748f742c6f to your computer and use it in GitHub Desktop.
Rails vs. Django deployment
application '/srv/myapp' do
git 'https://github.com/example/myapp.git'
virtualenv
pip_requirements
django do
database 'sqlite:///test_django.db'
secret_key 'd78fe08df56c9'
migrate true
end
gunicorn do
port 8000
end
end
application '/srv/myapp' do
git 'https://github.com/example/myapp.git'
bundle_install do
deployment true
without %w{development test}
end
rails do
database 'sqlite3:///db.sqlite3'
secret_token 'd78fe08df56c9'
migrate true
end
unicorn do
port 8000
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment