my8100 / scrapydweb

Web app for Scrapyd cluster management, Scrapy log analysis & visualization, Auto packaging, Timer tasks, Monitor & Alert, and Mobile UI. DEMO :point_right:
https://github.com/my8100/files
GNU General Public License v3.0
3.13k stars 557 forks source link

Error when using heroku database postgresql #151

Open ddfsdd opened 4 years ago

ddfsdd commented 4 years ago

Describe the bug When using DATABASE_URL from heroku postgres options in scrapydweb, the app crashes because it mistakes the username at the start of the url as the database name when it should be the username

To Reproduce Steps to reproduce the behavior:

  1. Deploy scrapyd and scrapydweb on heroku as in readme.md
  2. In the scrapydweb directory run $heroku addons:create heroku-postgresql:hobby-dev to add the database
  3. Run $heroku restart
  4. The app crashes as can be seen in the heroku logs

Expected behavior The scrapydweb should be able to connect to heroku postgresql normally

Logs Add logs of ScrapydWeb and Scrapyd (optional) when reproducing the bug. (It's recommended to run ScrapydWeb with argument '--verbose' if its version >= 1.0.0)

Environment (please complete the following information):

MartinMetselaar commented 4 years ago

Seems like a duplicate of #139