mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-29 10:18:29 -04:00
* Add Procfile.dev and update bin/dev for dev asset watchers - Create Procfile.dev to run web server and asset compilation watchers for JS (`yarn build:watch`) and CSS (`yarn build:css:watch`). - Add `foreman` gem to `:development` group in Gemfile. - Update `bin/dev` to run Procfile.dev using available process manager (overmind, hivemind, or foreman). - Fix `build:css:watch` script in package.json to pass `--watch` to Sass. - Update README.md to instruct running `bin/dev` in development. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Add Procfile.dev and update bin/dev for dev asset watchers - Create Procfile.dev to run web server and asset compilation watchers for JS (`yarn build:watch`) and CSS (`yarn build:css:watch`). - Add `foreman` gem to `:development` group in Gemfile and Gemfile.lock. - Update `bin/dev` to run Procfile.dev using available process manager (overmind, hivemind, or foreman). - Fix `build:css:watch` script in package.json to pass `--watch` to Sass. - Update README.md to instruct running `bin/dev` in development. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Apply suggestion from @CloCkWeRX * Apply suggestion from @CloCkWeRX * Add Procfile.dev and update bin/dev for dev asset watchers - Create Procfile.dev to run web server and asset compilation watchers for JS (`yarn build:watch`) and CSS (`yarn build:css:watch`). - Add `foreman` gem to `:development` group in Gemfile and Gemfile.lock. - Update `bin/dev` to run Procfile.dev using available process manager (overmind, hivemind, or foreman). - Fix `build:css:watch` script in package.json to pass `--watch` to Sass. - Update README.md to instruct running `bin/dev` in development. - Keep .ruby-version unchanged. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Apply suggestion from @CloCkWeRX --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
20 lines
614 B
Ruby
Executable File
20 lines
614 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
ENV["PORT"] ||= "3000"
|
|
|
|
# Guard against running as root in Docker/podman containers
|
|
if Process.uid.zero? && ENV["ALLOW_ROOT"].nil?
|
|
puts "bin/dev should not be run as root. Set ALLOW_ROOT=1 to override."
|
|
exit 1
|
|
end
|
|
|
|
if system("which overmind > /dev/null 2>&1")
|
|
exec "overmind", "start", "-f", "Procfile.dev", *ARGV
|
|
elsif system("which hivemind > /dev/null 2>&1")
|
|
exec "hivemind", "Procfile.dev", *ARGV
|
|
elsif system("which foreman > /dev/null 2>&1")
|
|
exec "foreman", "start", "-f", "Procfile.dev", *ARGV
|
|
else
|
|
exec "bundle", "exec", "foreman", "start", "-f", "Procfile.dev", *ARGV
|
|
end
|