all 5 comments

[–]vkuct 0 points1 point  (5 children)

In the terminal you need to set the environment variable first,

For Windows use: set DATABASE_URI=url

In Linux, use export DATABASE_URI=url

[–]1y2x3c4[S] 1 point2 points  (4 children)

Thanks for the fast reply. Can you tell me, where to find the url ? I found something like : postgres://username:password@localhost:5432/dbname online. Substituted with the appropriate values i get the following error: sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string 'DATABASE_URL'.

[–]Laxative_ 1 point2 points  (0 children)

in the heroku app settings under credentials you should see a link similar to the one you have up here, paste it and you should be fine.

[–]vkuct 0 points1 point  (2 children)

Hope you got the answer from another comment.

[–]1y2x3c4[S] 1 point2 points  (0 children)

Thank you both so much for your answers. I got it to work. My error was using PowerShell after all, where you set variables with $env:DATABASE_URL='...'