chore: replace procodile with foreman for dev

This commit is contained in:
Adam Cooke
2022-02-14 14:16:11 +00:00
parent 8dd5df6e8a
commit e49ae56d27
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ require_relative '../lib/postal/config'
threads_count = Postal.config.web_server&.max_threads&.to_i || 5
threads threads_count, threads_count
bind_address = Postal.config.web_server&.bind_address || '127.0.0.1'
bind_port = ENV['PORT'] || Postal.config.web_server&.port&.to_i || 5000
bind_port = Postal.config.web_server&.port&.to_i || ENV['PORT'] || 5000
bind "tcp://#{bind_address}:#{bind_port}"
environment Postal.config.rails&.environment || 'development'
prune_bundler