Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Heroku use Python 3. #18

Merged
merged 1 commit into from
Jul 6, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Another thing we need to create is a Procfile. Open up your code editor, create

Then save it. Done!

## Runtime.txt

We need to tell Heroku which Python version we want to use. This is simply done by creating a `runtime.txt` and puttin the following text inside:

python-3.4.1

## mysite/settings.py

Another thing we need to do is modify our website's `settings.py` file. Open `mysite/settings.py` in your editor and add the following lines:
Expand Down Expand Up @@ -112,6 +118,7 @@ Next, we’ll create a new git repository and save our changes. Go to your conso
create mode 100644 mysite/wsgi.py
create mode 100644 manage.py
create mode 100644 requirements.txt
create mode 100644 runtime.txt

## Deploy to Heroku!

Expand Down