Skip to content

Commit

Permalink
added makefile command to run server. command added to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstottmoj committed Apr 4, 2024
1 parent 3298a8b commit 2c8a364
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ db-drop:
serve:
python manage.py runserver

serve-sso:
aws-sso exec --profile analytical-platform-development:AdministratorAccess -- python manage.py runserver

container:
docker build -t controlpanel .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ There is an example environment file stored on 1Password named ```Analytical Pla
### Running Development Server
To run the server, you will need to use aws-sso cli. To find the correct profile, run ```aws-sso list``` in the terminal. This will provide you with a link to sign in via SSO. Once signed in, a list of profiles will be displayed. You are looking for the profile name linked to the ```analytical-platform-development``` AccountAlias.

To run the server using this profile, enter ```aws-sso exec --profile <profile-name> -- python manage.py runserver```. Then go to ```localhost:8000``` and sign in using your @justice.gov.uk identity.
To run the server using this profile, enter ```aws-sso exec --profile analytical-platform-development:AdministratorAccess -- python manage.py runserver``` or ```make serve-sso```. Then go to ```localhost:8000``` and sign in using your @justice.gov.uk identity.

### Updating Migrations
To run the migrations locally, run ```python manage.py migrate``` in the terminal.
Expand Down

0 comments on commit 2c8a364

Please sign in to comment.