Skip to content

Commit

Permalink
Replaced foreman with overmind
Browse files Browse the repository at this point in the history
  • Loading branch information
yatish27 committed Apr 20, 2024
1 parent 1b19f09 commit 8a0b454
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ group :development do
gem "rubocop-performance", require: false
gem "rubocop-rails", ">= 2.22.0", require: false
gem "web-console"
gem "foreman", "~> 0.88.1"
gem "overmind", "~> 2.5.1"
gem "erb_lint", "~> 0.5", require: false
gem "bundler-audit", require: false
end
Expand Down
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ GEM
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
railties (>= 5.0.0)
foreman (0.88.1)
fugit (1.9.0)
et-orbi (~> 1, >= 1.2.7)
raabro (~> 1.4)
Expand Down Expand Up @@ -179,6 +178,11 @@ GEM
racc (~> 1.4)
nokogiri (1.16.4-x86_64-linux)
racc (~> 1.4)
overmind (2.5.1)
overmind (2.5.1-arm-linux)
overmind (2.5.1-arm64-darwin)
overmind (2.5.1-x86-linux)
overmind (2.5.1-x86_64-darwin)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
Expand Down Expand Up @@ -318,9 +322,9 @@ DEPENDENCIES
dotenv (>= 3.0)
erb_lint (~> 0.5)
factory_bot_rails
foreman (~> 0.88.1)
jbuilder
letter_opener
overmind (~> 2.5.1)
pg (~> 1.1)
puma (>= 5.0)
rails (~> 7.1.3, >= 7.1.3.2)
Expand Down
8 changes: 4 additions & 4 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env sh

if ! gem list foreman -i --silent; then
echo "Installing foreman..."
gem install foreman
if ! gem list overmind -i --silent; then
echo "Installing overmind..."
gem install overmind
fi

# Default to port 3000 if not specified
export PORT="${PORT:-3000}"

exec foreman start -f Procfile.dev "$@"
exec overmind start -f Procfile.dev "$@"

0 comments on commit 8a0b454

Please sign in to comment.