Skip to content

Commit 419e315

Browse files
committed
Revert bin/dev back to foreman procfile use
We can't take the Rails default when running `rails app:update` because the default assumes no build step for assets but we rely on one so we need foreman to watch and build CSS.
1 parent 35668ec commit 419e315

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bin/dev

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
#!/usr/bin/env ruby
2-
# frozen_string_literal: true
1+
#!/usr/bin/env sh
32

4-
exec "./bin/rails", "server", *ARGV
3+
if ! gem list foreman -i --silent; then
4+
echo "Installing foreman..."
5+
gem install foreman
6+
fi
7+
8+
bin/rails db:migrate
9+
10+
exec foreman start -f Procfile.dev "$@"

0 commit comments

Comments
 (0)