Skip to content
Snippets Groups Projects
Commit 37450b26 authored by Odin Johan Vatne's avatar Odin Johan Vatne
Browse files

Add Heroku instructions to README

parent 7d3ba7a9
No related branches found
No related tags found
1 merge request!1Prepare branch for testing deployment
......@@ -17,7 +17,18 @@ recommend setting up a virtual environment, using e.g. Python's `venv` module:
* Install the required packages: `pip install -r requirements.txt`
* Apply database migrations: `python manage.py migrate`
* Optionally populate the database: `python manage.py populatedefaults` `python manage.py populatesamples`
* or `python manage.py loadcsvdata test_data/[data folder]`
* Run the application: `python manage.py runserver`
* This will make the application available on port 8000; visit it by going
to https://localhost:8000/ in your browser.
* Deactivate the virtual environment when you are done: `deactivate`
## Heroku Deployment (for test administration)
* Install the Heroku CLI
* Open bash from the local repository root folder
* Run `heroku login` and log in
* Run `heroku create pasapp` to create a heroku app on your account
* Run `git push heroku [local branchname]:main` to push and deploy the app
* Run `heroku ps:scale web=1` to allocate one web server to the app
* Run `heroku run bash` to open a bash on the live server
* `python manage.py loadcsvdata test_data/[data folder]` to populate the server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment