docbrown/bin/startup
Mac Siri 5dc7e889b9
Support devcontainers and GitHub codespace (#20126)
Co-authored-by: Josh Klar <jklar@forem.com>
2023-09-21 18:16:09 -04:00

18 lines
486 B
Ruby
Executable file

#!/usr/bin/env ruby
require "pathname"
require "fileutils"
include FileUtils
# path to your application root.
APP_ROOT = Pathname.new File.expand_path("..", __dir__)
def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
end
chdir APP_ROOT do
puts "== STARTING UP =="
# Foreman .env load behavior is at odds with dotenv
# https://github.com/ddollar/foreman/issues/702#issuecomment-1227334155
system! "foreman start -f Procfile.dev --env=/dev/null"
end