Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced foreman with overmind #5

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "$@"