Open AndyGao23 opened 3 years ago
please have a look at our documentation: https://github.com/heroku/heroku-buildpack-nginx#languageapp-server-agnostic
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
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.
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
Procfile
web: bin/nginx -p . -c config/nginx.conf & bundle exec puma -C config/puma.rb
worker: bundle exec sidekiqswarm -C config/sidekiq.yml