preface: Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. env: base: python_version: name: Python version value: 3 help: https://www.python.org/doc/versions/ POSTGRES_DB: name: Postgres databasconfigurarbe name value: postgres help: https://www.postgresql.org/docs/9.0/manage-ag-createdb.html POSTGRES_USER: name: Postgres user name value: postgres help: https://www.postgresql.org/docs/8.0/user-manag.html#DATABASE-USERS POSTGRES_PASSWORD: name: Postgres password value: password help: https://www.postgresql.org/docs/8.0/sql-alteruser.html app_name: name: Then name of your application or project value: unstoppable_django help: https://www.forbes.com/sites/allbusiness/2016/10/23/12-tips-for-naming-your-startup-business/ actions: - directory 'stage_one', '.', @env - | system "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . && sudo chown -R $USER:$USER ." - directory 'stage_two/settings.py', "./#{@env[:base][:app_name][:value]}/", @env - | system "sudo chown -R $USER:$USER . && docker-compose up --build" - system "echo 'You may open your app at http://localhost:8000/'"