From 511a0bcdf0be735789b007342dfb90d92a508665 Mon Sep 17 00:00:00 2001 From: Juzer Shakir Date: Sat, 21 Dec 2024 13:18:17 +0530 Subject: [PATCH] Update `dev` --- bin/dev | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/dev b/bin/dev index 5f91c205..d80a02db 100755 --- a/bin/dev +++ b/bin/dev @@ -1,2 +1,11 @@ -#!/usr/bin/env ruby -exec "./bin/rails", "server", *ARGV +#!/usr/bin/env sh + +if gem list --no-installed --exact --silent foreman; then + echo "Installing foreman..." + gem install foreman +fi + +# Default to port 3000 if not specified +export PORT="${PORT:-3000}" + +exec foreman start -f Procfile.dev --env /dev/null "$@"