Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Master Project Assignment Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Odin Johan Vatne
Master Project Assignment Software
Commits
37450b26
Commit
37450b26
authored
3 years ago
by
Odin Johan Vatne
Browse files
Options
Downloads
Patches
Plain Diff
Add Heroku instructions to README
parent
7d3ba7a9
No related branches found
No related tags found
1 merge request
!1
Prepare branch for testing deployment
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-0
11 additions, 0 deletions
README.md
with
11 additions
and
0 deletions
README.md
+
11
−
0
View file @
37450b26
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment