docbrown/bin/startup
Mac Siri 350182d53f
Add hivemind to Containerfile (#20457)
* Add overmind to Containerfile

* Allow dynamic system architecture

* Add hivemind to bin/startup

* Remove redundant NODE in devcontainer

* Fix bug

* Refactor

* Update check hivemind script
2023-12-19 14:11:04 +00:00

23 lines
580 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
if system("which hivemind > /dev/null")
system! "hivemind Procfile.dev"
else
system! "foreman start -f Procfile.dev --env=/dev/null"
end
end