Sha256: e1eb3c4d411bf63cd73522a866b1335cf5ab75b4afe7d1c27ff1ddccea295310

Contents?: true

Size: 1.48 KB

Versions: 5

Compression:

Stored size: 1.48 KB

Contents

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/'"


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roro-0.3.28 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml
roro-0.3.27 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml
roro-0.3.25 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml
roro-0.3.24 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml
roro-0.3.23 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml