mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
Point to rbenv and nodenv from setup script
Show the appropriate links when the Ruby and Node dependencies are not met. This will make it easier for newcomers to install them.
This commit is contained in:
@@ -18,13 +18,13 @@ DB_PASSWORD='f00d'
|
||||
|
||||
# Check ruby version
|
||||
if ! ruby --version | grep $RUBY_VERSION > /dev/null; then
|
||||
printf "${RED}Open Food Network requires ruby ${RUBY_VERSION}${NO_COLOR}\n"
|
||||
printf "${RED}Open Food Network requires ruby ${RUBY_VERSION}${NO_COLOR}. Have a look at: https://github.com/rbenv/rbenv\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check node version
|
||||
if ! node --version | grep $NODE_VERSION > /dev/null; then
|
||||
printf "${RED}Open Food Network requires node ${NODE_VERSION}${NO_COLOR}\n"
|
||||
printf "${RED}Open Food Network requires node ${NODE_VERSION}${NO_COLOR}. Have a look at: https://github.com/nodenv/nodenv\n"
|
||||
fi
|
||||
|
||||
# Check postgresql version
|
||||
|
||||
Reference in New Issue
Block a user