DEV Community

Discussion on: Guide to Drupal 9 on Heroku

Collapse
 
oleksii909 profile image
Oleksii Bondarenko • Edited

heroku create [your_app_name]
-add psql addon in heroku ui
heroku config:set DATABASE_URL=[URI] --app [your_app_name]
git init
heroku git:remote --app [your_app_name]

  • add vendor to .gitignore git checkout -b main git add . git commit -m "initial commit" git push heroku main

Follow the app url provided by cli:
in my case:

remote: -----> Compressing...
remote:        Done: 33.3M
remote: -----> Launching...
remote:        Released v5
remote:        https://d9-new-chatbot-fb.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.
To https://git.heroku.com/d9-new-chatbot-fb.git
 * [new branch]        main -> main
Enter fullscreen mode Exit fullscreen mode

d9-new-chatbot-fb.herokuapp.com/
but you can check the result -> it is not working
HELP me please.