Skip to content

Commit

Permalink
Merge pull request digitalocean#18 from yGabriel/patch-1
Browse files Browse the repository at this point in the history
Clarifies Database Migration
  • Loading branch information
Kamal Nasser authored Sep 29, 2022
2 parents 75d9cd2 + a492100 commit df3a866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ After forking the repo, you should now be viewing this README in your own github
1. Once the build completes successfully, click the "Live App" link in the header and you should see your running application in a new tab, displaying the home page.
1. You will still need to perform the following tasks from the dashboard console to finish setting up your Django application:
1. Navigate to the console tab
1. Run `python manage.py migrate` to perform the initial database migration. You will only need to run this the very first time you deploy your app
1. Run `python manage.py migrate` to perform the initial database migration. After setup, you may need to migrate the database again if updated. For this reason, we recommend setting up a [pre-deploy Job](https://docs.digitalocean.com/products/app-platform/how-to/manage-jobs/) to migrate the database, automated to run before each deployment. This method also ensures that the migration happens successfully before serving traffic. If it fails, the old version of the service remains active instead.
1. Run `python manage.py createsuperuser` and follow the prompts to create a super user to access at `/admin`.

## Environment Variables ##
Expand Down

0 comments on commit df3a866

Please sign in to comment.