GithubHelp home page GithubHelp logo

sagar-uprety / doccano_postgres_heroku_deploy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Automation script to build and deploy Doccano Instance to Heroku Web app

Dockerfile 58.01% Shell 41.99%
automation doccano dockerfile heroku postgresql shell-script

doccano_postgres_heroku_deploy's Introduction

Instructions to setup your Doccano app

Installations Needed (Locally)

  • Docker
  • Heroku CLI

Steps

  1. Create an app on Heroku

  2. Go to Resources tab and install Heroku Postgres as add-on.

  3. 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:

     [email protected] //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
    
  4. 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

  5. From this direcotory, run ./deploy.sh heruko_app_name. Note that heruko_app_name must match the app you created earlier.

  6. That's it. This will deploy your Doccano app and connect it to the PostgresDB as required.

doccano_postgres_heroku_deploy's People

Contributors

sagar-uprety avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.