Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting service with purchased DB chrashes on Heroku #231

Closed
knagode opened this issue Aug 8, 2017 · 3 comments
Closed

Starting service with purchased DB chrashes on Heroku #231

knagode opened this issue Aug 8, 2017 · 3 comments

Comments

@knagode
Copy link

knagode commented Aug 8, 2017

I tried to deploy to Heroku with this proc file:

web: freegeoip -http :${PORT} -quota-max 0 -db=https://download.maxmind.com/app/geoip_download?edition_id=GeoIP2-City&date=20170808&suffix=tar.gz&license_key=HIDDEN_BUT_CORRECT

But I get this in heroku logs:

Process exited with status 0
2017-08-08T21:33:55.563199+00:00 heroku[web.1]: State changed from starting to crashed

I copied database link from maxmind page after purchasing. Is this not the way to go?

@knagode knagode changed the title Starting service with purchased DB Starting service with purchased DB chrashes on Heroku Aug 8, 2017
@fiorix
Copy link
Owner

fiorix commented Aug 29, 2017

You probably have to use single quote for the entire URL.

@urkle
Copy link

urkle commented Sep 19, 2017

That is.. doing this

web: freegeoip -http :${PORT} -quota-max 0 '-db=https://download.maxmind.com/app/geoip_download?edition_id=GeoIP2-City&date=20170808&suffix=tar.gz&license_key=HIDDEN_BUT_CORRECT'

otherwise the way that heroku runs the commands the "&" is treated as a "run command in background" by the shell. so you are really launching this.

freegeoip -http :${PORT} -quota-max 0 -db=https://download.maxmind.com/app/geoip_download?edition_id=GeoIP2-City

@fiorix
Copy link
Owner

fiorix commented Sep 19, 2017

That's correct, thanks for answering :)

@fiorix fiorix closed this as completed Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants