errbit / errbit

The open source error catcher that's Airbrake API compliant
http://errbit.github.com/errbit/
MIT License
4.25k stars 995 forks source link

run bootstrap script on heroku deploy #1129

Open stevecrozz opened 8 years ago

stevecrozz commented 8 years ago

Use https://devcenter.heroku.com/articles/app-json-schema#scripts to specify that heroku should run the bootstrap script automatically. I'm thinking it would be a good idea to combine this with environment variables that define the admin user and password so users don't have to go hunting for them.

lucianosousa commented 8 years ago

good idea. I was struggling here to login in a heroku fresh installation. also, the documentation should be improved in that part

rud commented 6 years ago

There's a chicken/egg problem with how to reveal the root login to the installing user, as we have no secure channel to them aside from console output. I think we need to document where Heroku output can be seen after bootstrapping is completed, no?

stevecrozz commented 6 years ago

That's probably the easiest solution. We could also attempt to email you based on some heroku environment variable that may exist? Or try to use the heroku API to discover your email? Or have some kind of interactive initial setup page you can access when no users exist...

All of that would require a lot more effort and not sure we have the manpower for it. Probably the right thing to do is document where to find the output.