-
Run:
export NODE_ENV=local
On Windows (powershell) instead run:
$env:NODE_ENV="local"
-
Change directory into the app folder
-
Run:
yarn add package.json
-
Execute:
yarn build
-
Apply any database changes:
python manage.py makemigrations python manage.py migrate python manage.py migrate --run-syncdb
-
Run:
python manage.py collectstatic
-
Run:
python manage.py runserver
Also if you change anything on the model, do:
Delete db.sqlite3
and then step 5, to ensure those changes are detected by the server.
-
Run:
heroku login
-
Login to heroku
-
Change directory into app and run:
yarn add package.json
to make sure there is a yarn.lock file
-
Change directory back into the root dir
-
Run:
sudo deploy_app.sh