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

cant start with puma #87

Open
AndyGao23 opened this issue Jul 20, 2021 · 4 comments
Open

cant start with puma #87

AndyGao23 opened this issue Jul 20, 2021 · 4 comments

Comments

@AndyGao23
Copy link

AndyGao23 commented Jul 20, 2021

Procfile
web: bin/nginx -p . -c config/nginx.conf & bundle exec puma -C config/puma.rb
worker: bundle exec sidekiqswarm -C config/sidekiq.yml

@beanieboi
Copy link
Member

please have a look at our documentation: https://github.com/heroku/heroku-buildpack-nginx#languageapp-server-agnostic

@AndyGao23
Copy link
Author

It works good with unicorn and i just want to figure out the way to start with puma.

And I didn't find the nginx.conf file in heroku bash

please have a look at our documentation: https://github.com/heroku/heroku-buildpack-nginx#languageapp-server-agnostic

@DiegoSPB
Copy link

Also having issues making it work with puma, it seems that /tmp/app-initialized is never touched because keep getting nonstop:

2022..: buildpack=nginx at=app-initialization
2022... buildpack=nginx at=app-initialization

added to puma.rb

before_fork do
  FileUtils.touch('/tmp/app-initialized')
end

Procfile

web: bin/start-nginx-debug bundle exec puma -C config/puma.rb

and I do get the initial log of:

buildpack=nginx at=start-app cmd=bundle exec puma -C config/puma.rb

Maybe its an issue between heroku/puma but asking here in case someone figured it out.

@DiegoSPB
Copy link

haven't been able to trigger the touch from puma but was able to make it work by adding to application.rb

  config.after_initialize do
    FileUtils.touch('/tmp/app-initialized')
  end

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