Skip to content

Commit

Permalink
chore: replace procodile with foreman for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 14, 2022
1 parent 8dd5df6 commit e49ae56
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
File renamed without changes.
12 changes: 0 additions & 12 deletions Procfile.options

This file was deleted.

9 changes: 9 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

if ! command -v foreman &> /dev/null
then
echo "Installing foreman..."
gem install foreman
fi

foreman start -f Procfile.dev
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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
Expand Down

0 comments on commit e49ae56

Please sign in to comment.