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

Start up Command #35

Open
Akinnagbe opened this issue Sep 4, 2019 · 3 comments
Open

Start up Command #35

Akinnagbe opened this issue Sep 4, 2019 · 3 comments

Comments

@Akinnagbe
Copy link

Hello,

I added a start up command to run migrations while the app is starting up using the Start up command section in Configuration=>General Settings tab. but i noticed that the container fails to start showing the following error:

2019-09-04 14:35:14.810 ERROR - Container ****** for site ..... has exited, failing site start
2019-09-04 14:35:14.825 ERROR - Container ****** didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.

@dombarnes
Copy link

Does the startup command work outside of docker? I assume its something like
bundle exec rake db:migrate && bundle exec rails

@Akinnagbe
Copy link
Author

yes it works, it was initially hosted on Heroku without issues, but when ported to Azure, the start up commands didn't work.

@pjmartorell
Copy link

@Akinnagbe I think your error is related with the character encoding of your script. Check this article: https://omgdebugging.com/2017/12/22/azure-web-app-for-container-failing-site-start/

Another option is to try rbenv exec bundle exec rake db:migrate

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