Deploying a Django app on AWS: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
== Deploying a Django app ==
== Deploying a Django app ==


=== Installing and updating project files ===
Updates to the app are deployed with `eb deploy`.


`ssh` to the AWS server.
This looks at `.elasticbeanstalk/config.yml` for the target application and environment.  


Invoke the virtual Python 3.x environment.
<syntaxhighlight lang="yml">
branch-defaults:
  master:
    environment: nrose-env
global:
  application_name: north-rose
  default_ec2_keyname: nrosedevs-aws
  default_platform: 64bit Amazon Linux 2015.09 v2.0.6 running Python 3.4
  default_region: us-west-2
  profile: eb-cli
  sc: git
</syntaxhighligh>


Use Git to pull from the project repository.
With the `config.yml` above, `eb deploy` will package up the project file and upload them to the EC2 instance corresponding with the `nrose-env` environment of the `north-rose` app.


=== Installing Django app dependencies ===
=== Installing Django app dependencies ===

Revision as of 00:34, 10 February 2016

Overview

All of these steps are performed locally.

Prerequisites

Deploying a Django app

Updates to the app are deployed with eb deploy.

This looks at .elasticbeanstalk/config.yml for the target application and environment.

<syntaxhighlight lang="yml"> branch-defaults:

 master:
   environment: nrose-env

global:

 application_name: north-rose
 default_ec2_keyname: nrosedevs-aws
 default_platform: 64bit Amazon Linux 2015.09 v2.0.6 running Python 3.4
 default_region: us-west-2
 profile: eb-cli
 sc: git

</syntaxhighligh>

With the config.yml above, eb deploy will package up the project file and upload them to the EC2 instance corresponding with the nrose-env environment of the north-rose app.

Installing Django app dependencies

See Defining Django App Dependencies

Notes

See also

References