Update documentation for new instance creation

This commit is contained in:
Ramon Wenger 2022-12-01 13:30:46 +01:00
parent ebc4ca50ae
commit af7087a224
3 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
name=$1
app=$name-prod
app=$name
remote=$name
env=$name.env
rndm=$(echo $RANDOM | md5sum | head -c 32; echo)

View File

@ -1,10 +1,10 @@
#!/bin/bash
name=$1
app=$name-prod
app=$name
heroku apps:create \
--team skillbox \
--region eu \
--stack heroku-20 \
--addons heroku-postgresql:hobby-basic,scheduler:standard \
--addons heroku-postgresql:basic,scheduler:standard \
$app

View File

@ -4,5 +4,6 @@
- create an .env file for this app with the name `$name.env`
- `./create-instance.sh <app-name>`
- `./configure-instance.sh <app-name>`
- heroku run --app $name-prod python server/manage.py dummy_data
- heroku run --app $name-prod python server/manage.py createsuperuser
- `git push <app> <branch>:master`
- `heroku run --app $name-prod python server/manage.py dummy_data`
- `heroku run --app $name-prod python server/manage.py createsuperuser`