-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After much trial and error, I was able to deploy to Elastic Beanstalk (EB). Initially, I was running into an issue where when I deployed, EB wasn't able to find the entry-point application, even if I used eb configure to set the WSGIPath variable. The reason for this (I think) is that even if you set WSGIPath to some.module.somewhere.app, EB still needs to know what the name of the Flask app variable is. (The tutorial has you make the entry-point application runnable, so I'm not sure why it would need to know the name of the Flask app variable, but alas.) The solution I arrived at was to create a Procfile that specifies the module and the Flask app name. For: #8
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Deploying affils | ||
|
||
The affils service is deployed to AWS's Elastic Beanstalk service. If | ||
you use your Stanford credentials to log in to AWS, choose the | ||
production profile, and set your region to Oregon (us-west-2), and then | ||
you navigate to the Elastic Beanstalk console, you should see an Elastic | ||
Beanstalk environment called `affils-env`. The `affils-env` environment | ||
contains the `affils` application. If you click the `affils` | ||
application, you should be able to view information about the affils | ||
service. | ||
|
||
To deploy the files from your computer, enter the following: | ||
|
||
``` | ||
inv deploy | ||
``` | ||
|
||
This command should upload the affils files from your computer to AWS's | ||
Elastic Beanstalk service. |
This file contains 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