I’m following this tutorial. I’ve added the following in the final of my fly.toml
:
[processes]
web = "bin/rails server"
worker = "bundle exec sidekiq"
Then, the tutorial indicates a change in the [[services]]
directive, that do not exist. I’ve tried to add the same code of the tutorial, or just not using it. Both give that error when I try to deploy:
Platform: machines
Service has no processes set but app has 2 processes defined; update fly.toml to set processes for each service
✘invalid app configuration
Error: App configuration is not valid
That’s my fly.toml:
app = "my-platform"
primary_region = "gru"
console_command = "/rails/bin/rails console"
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
[[statics]]
guest_path = "/rails/public"
url_prefix = "/"
[processes]
web = "bin/rails server"
worker = "bundle exec sidekiq"