Skip to content

Commit 032aaf8

Browse files
committed
minor updates to the final deployment session
1 parent 7fe95fb commit 032aaf8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/presentations/session10.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,20 @@ Back on the EC2 instance, in your ssh terminal, clone your django application:
479479
.. rst-class:: build
480480
.. container::
481481

482-
pip install the requirements for your app:
482+
pip install the requirements for your app::
483483

484-
cd djangoblog_uwpce
485-
pip install -r requirements.txt
484+
$ cd djangoblog_uwpce
485+
$ pip install -r requirements.txt
486486

487-
Finally, export a system environment variable called DATABASE_URL with the
488-
following format::
487+
.. nextslide::
488+
489+
Finally, export a system environment variable called DATABASE_URL with the
490+
following format::
491+
492+
postgres://username:password@host:port/dbname
489493

490-
postgres://username:password@host:port/dbname
494+
.. rst-class:: build
495+
.. container::
491496

492497
.. code-block:: bash
493498
@@ -631,7 +636,7 @@ Put the following in ``/etc/init/djangoblog.conf``
631636
setgid nogroup
632637
chdir /home/ubuntu/djangoblog_uwpce
633638
env DJANGO_SETTINGS_MODULE=mysite.production
634-
env DATABASE_URL=postgres://awsuser:[email protected]:5432/djangoblog
639+
env DATABASE_URL=postgres://<username>:<password>@<host>:<port>/djangoblog
635640
exec gunicorn -b 127.0.0.1:8000 -w 4 mysite.wsgi
636641
637642
.. _upstart: http://blog.terminal.com/getting-started-with-upstart/

0 commit comments

Comments
 (0)