mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Merge pull request #13886 from mkllnk/setup
Fail setup script when nodenv is missing
This commit is contained in:
10
bin/setup
10
bin/setup
@@ -1,4 +1,10 @@
|
||||
#!/usr/bin/env ruby
|
||||
#
|
||||
# Install dependencies and migrate data during production deployments or
|
||||
# when updating your development environment.
|
||||
#
|
||||
# Take care when changing it and consider the ofn-install repository for
|
||||
# the context of deployments.
|
||||
require "fileutils"
|
||||
|
||||
# path to your application root.
|
||||
@@ -21,8 +27,8 @@ FileUtils.chdir APP_ROOT do
|
||||
system("bundle check 2> /dev/null") || system!(BUNDLE_ENV, "bundle install")
|
||||
|
||||
# Install JavaScript dependencies
|
||||
system("script/nodenv-install.sh")
|
||||
system("bin/yarn")
|
||||
system!("script/nodenv-install.sh")
|
||||
system!("bin/yarn")
|
||||
|
||||
# puts "\n== Copying sample files =="
|
||||
# unless File.exist?("config/database.yml")
|
||||
|
||||
Reference in New Issue
Block a user