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

Updated setup_mac to run puma instead of thin and to handle some of the ... #760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ninjapanzer
Copy link
Contributor

...conditions of starting puma

Puma takes a few seconds to launch and will be started in the background. So we curl until it is accepting requests.

Also we are caging(kill -9) old pumas if they are running when the script is started.
Side effect is that the script restarts puma.

…he conditions of starting puma

Puma takes a few seconds to launch and will be started in the background. So we curl until it is accepting requests.

Also we are caging(kill -9) old pumas if they are running when the script is started.
Side effect is that the script restarts puma.

#hang out until puma is accepting request so we do not redirect to an error
echo "Puma is being a little sluggish please wait"
while [ "$REQUEST" != "200" ]; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda feel like there should be some kind of timeout here, like 20 seconds or something. shrug

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bootup seems to take between 5 and 7 seconds

@wilkie wilkie force-pushed the master branch 2 times, most recently from b190898 to 33e3540 Compare October 6, 2014 06:04
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

Successfully merging this pull request may close these issues.

2 participants