18 August 2017

eb tutorial for python flask app

eb tutorial for .net core

Notes:

  1. You can directly launch a sample application that aws made for you. but if you want to remote to that server later, don’t choose this option. As there is no way to let you assign EC2 Key Pair image
  2. If you try to deploy a python app, it will failed because the pip version is pretty old. you have to upgrade it. Steps are:
    • add .ebextensions folder on the root folder of your app;
    • add a config file inside it, may name as pip.config, the content is :

        commands:
            update_pip:
                command: "/opt/python/run/venv/bin/pip install --upgrade pip"
      
    • run eb deploy again, it will be resolved.


blog comments powered by Disqus