For fast deployment in Heroku, 2 minor changes.
Procfile: web: helpful-coding-resources-api-master
rest-api:
db_url := os.Getenv("DATABASE_URL") db, err = gorm.Open("postgres",db_url)
to connect to DB.
This is for the new people trying Go+Heroku, that work for me, hope to save u some time.
great tut! thanxs Ali.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For fast deployment in Heroku, 2 minor changes.
Procfile:
web: helpful-coding-resources-api-master
rest-api:
db_url := os.Getenv("DATABASE_URL")
db, err = gorm.Open("postgres",db_url)
to connect to DB.
This is for the new people trying Go+Heroku, that work for me, hope
to save u some time.
great tut! thanxs Ali.