Created
August 7, 2015 21:12
-
-
Save coderanger/dcee07b11d748f742c6f to your computer and use it in GitHub Desktop.
Rails vs. Django deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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