I have Rails 4.2 application and I want to execute some one-off code when server starts.
My first approach was to use initializer in
Can be achieved with Foreman by running in the same process as daemonized task (e.g. with
If one-off taks is
Then corresponding Procfile is
web: rake lego:update_all && rails s sidekiq: bundle exec sidekiq