AWS seems to like eb. But I never used eb
http://docs.aws.amazon.com/ja_jp/elasticbeanstalk/latest/dg/create-deploy-python-apps.html It is a record that I actually worked along with Prepared to continue throwing until everything is done
Preparing to deploy Flask application by building Python environment with eb Flask application deployment that tried to build Python environment with eb
- Python 2.7 or 3.4
- The pip utility for your version of Python. It is used to install and list project dependencies so that Elastic Beanstalk can determine how to set up your application environment.
- virtualenv package. It is used to create an environment for developing and testing applications. This allows Elastic Beanstalk to replicate that environment without installing extra packages that your application does not need.
- awsebcli package. It is used to initialize the application with the files needed for deployment by Elastic Beanstalk.
- A working ssh installation. It is used to connect to a running instance when you need to investigate or debug your deployment.
... apparently ... Put simply --Pip can be used --python uses 2.7 / 3.4 --virtualenv installed --Awscli command can be used --You can use ssh
That is. I use a Mac.
I was allowed to refer to other than the document Reference: Try using virtualenv that can build a virtual environment of Python
command
virtualenv -p python2.7 /tmp/eb_python_app
result
Running virtualenv with interpreter /Users/****/.pyenv/shims/python2.7
New python executable in /Users/yuki/eb_test_app/bin/python
Installing setuptools, pip, wheel...done.
Verification
ls /Users/***/eb_test_app/
result
bin lib
include pip-selfcheck.json
The environment has been installed.
Change to the directory you created
command
cd /Users/***/eb_test_app/
Verification
pwd
result
/Users/****/eb_test_app
command
source bin/activate
If (directory name)% is added to the beginning of the console line, it is running.
Verification
pwd
result
/Users/****/eb_test_app
command
pip freeze >requirements.txt
pip freeze
The command displays the currently installed packages.
You can tell eb the environment by writing it in the text "requirements.txt" that eb reads.
At present, it seems that nothing is installed, so even if you look at the text, nothing will come out.
Example
command
pip install Djangp
Verification
pip freeze
result
Django==1.9.5
Like this. If something is installed, that information will be output.
The above is how to create a development environment