- Docker
- Heroku CLI
-
Create an app on Heroku
-
Go to Resources tab and install Heroku Postgres as add-on.
-
Now, we need to setup Doccano credentials as Config Vars (secured way). This can alternatively be passed on via Dockerfile if needed. Go to Settings tab and under Config Vars add these:
ADMIN_EMAIL=user@example.com //Doccano portal admin email ADMIN_USERNAME=user//Doccano portal login password ADMIN_PASSWORD=password //Doccano portal login password DATABASE_URL=postgres://bmnzfxhkgvexsdail:259ab24671bf50c320348e3386c48ac56b1f02874c30ba6ecb96b381740ced6b@ec2-3-219-135-162.compute-1.amazonaws.com:5432/dfv14eb7osk8p8 //Heroku Postgres DB URL. Check instructions below
-
Note: The DATABASE_URL value is automatically added to config var during add-on installation. If you need to check the URL manually. Go to:
Resources->Add-on->Heroku-Postgres->Settings->Database Credentials->URL
-
From this direcotory, run
./deploy.sh heruko_app_name
. Note that heruko_app_name must match the app you created earlier. -
That's it. This will deploy your Doccano app and connect it to the PostgresDB as required.