Skip to content

Commit e987081

Browse files
committed
[Fixes DjangoGirls#206] Moved from waitress to gunicorn
1 parent 5be7ebd commit e987081

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

en/deploy/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ We need to create a `requirements.txt` file to tell Heroku what Python packages
1414

1515
But first, Heroku needs us to install a few packages. Go to your console with `virtualenv` activated and type this:
1616

17-
(myvenv) $ pip install dj-database-url waitress whitenoise
17+
(myvenv) $ pip install dj-database-url gunicorn whitenoise
1818

1919
After the installation is finished, go to the `djangogirls` directory and run this command:
2020

@@ -36,9 +36,9 @@ This line is needed for your application to work on Heroku.
3636
Another thing we need to create is a Procfile. This will let Heroku know which commands to run in order to start our website.
3737
Open up your code editor, create a file called `Procfile` in `djangogirls` directory and add this line:
3838

39-
web: waitress-serve --port=$PORT mysite.wsgi:application
39+
web: gunicorn mysite.wsgi
4040

41-
This line means that we're going to be deploying a `web` application, and we'll do that by running the command `waitress-serve --port=$PORT mysite.wsgi:application` (`waitress-serve` is a program that's like a more powerful version of Django's `runserver` command).
41+
This line means that we're going to be deploying a `web` application, and we'll do that by running the command `gunicorn mysite.wsgi:application` (`gunicorn` is a program that's like a more powerful version of Django's `runserver` command).
4242

4343
Then save it. Done!
4444

pl/deploy/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Musimy utworzyć plik `requirements.txt` aby poinformować Heroku, jakie pakiety
1616

1717
Jednak na początku to Heroku wymaga od nas zainstalowania kilku pakietów. Przejdź do konsoli z uruchomionym `virtualenv` i wpisz:
1818

19-
(myvenv) $ pip install dj-database-url waitress whitenoise
19+
(myvenv) $ pip install dj-database-url gunicorn whitenoise
2020

2121

2222
Gdy instalacja się zakończy, przejdź do katalogu `djangogirls` i wykonaj polecenie:
@@ -39,10 +39,10 @@ Jest ona niezbędna, aby Twoja aplikacja działa na Heroku.
3939

4040
Kolejną rzeczą, którą musimy stworzyć, jest Procfile. W ten sposób poinformujemy Heroku, jakie polecenia muszą zostać wykonane w celu uruchomienia naszej strony. Otwórz swój edytor, utwórz plik o nazwie `Procfile` w katalogu `djangogirls` i dodaj poniższy wiersz:
4141

42-
web: waitress-serve --port=$PORT mysite.wsgi:application
42+
web: gunicorn mysite.wsgi
4343

4444

45-
Ta linijka oznacza, że zamierzamy wdrożyć aplikację internetową (`web`); do wykonania tej operacji służy polecenie `waitress-serve --port=$PORT mysite.wsgi:application` (`waitress-serve` jest programem przypominającym bardziej rozbudowaną wersję polecenia `runserver` w Django).
45+
Ta linijka oznacza, że zamierzamy wdrożyć aplikację internetową (`web`); do wykonania tej operacji służy polecenie `gunicorn mysite.wsgi:application` (`gunicorn` jest programem przypominającym bardziej rozbudowaną wersję polecenia `runserver` w Django).
4646

4747
Zapisz zmiany w pliku. Gotowe!
4848

uk/deploy/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
Але спочатку, Heroku потребує встановлення декількох пакетів. Перейдіть до вашої консолі із активованою `virtualenv` та наберіть наступне:
1818

19-
(myvenv) $ pip install dj-database-url waitress whitenoise
19+
(myvenv) $ pip install dj-database-url gunicorn whitenoise
2020

2121

2222
По завершенню інсталяції перейдіть до папки `djangogirls` та запустіть цю команду:
@@ -39,10 +39,10 @@
3939

4040
Інша річ, яку ми повинні створити -- Procfile. Це дозволить Heroku знати які команди виконувати для того, щоб запустити наш веб-сайт. Відкрийте кодовий редактор, створіть файл із назвою `Procfile` у папці `djangogirls` і додайте цей рядок:
4141

42-
web: waitress-serve --port=$PORT mysite.wsgi:application
42+
web: gunicorn mysite.wsgi
4343

4444

45-
Цей рядок означає що ми збираємось розгорнути `web` додаток, і ми зробимо це шляхом запуску команди `waitress-serve --port=$PORT mysite.wsgi:application` (`waitress-serve` -- програма на зразок більш потужної версії Django команди `runserver`).
45+
Цей рядок означає що ми збираємось розгорнути `web` додаток, і ми зробимо це шляхом запуску команди `gunicorn mysite.wsgi` (`gunicorn` -- програма на зразок більш потужної версії Django команди `runserver`).
4646

4747
Далі збережіть файл. Є!
4848

0 commit comments

Comments
 (0)