From 42097352c53bc1e66bd534a469cda264711a3599 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Wed, 23 Aug 2023 22:45:46 +0200 Subject: [PATCH] Update install.sh --- install.sh | 62 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 14 deletions(-) diff --git a/install.sh b/install.sh index 9ee1230..dc170c2 100644 --- a/install.sh +++ b/install.sh @@ -27,33 +27,39 @@ ip_address=$(hostname -I | cut -d' ' -f1) # Configure Nginx sudo sh -c 'cat > /etc/nginx/sites-available/default < www/config/environment.js +# Change into the www directory +cd www + +# Install ember-cli and bower globally +sudo npm install -g ember-cli@2.18.2 +sudo npm install -g bower + +# Change ownership of npm and config directories +sudo chown -R $USER:$GROUP ~/.npm +sudo chown -R $USER:$GROUP ~/.config + +# Install npm and bower dependencies +npm install +bower install + +# Install ember-truth-helpers +ember install ember-truth-helpers + +# Install jdenticon +npm install jdenticon@2.1.0 + +# Run the build.sh script within the www directory +bash build.sh + +# Change back to the main directory +cd .. + +set +x # Disable displaying commands echo "Installation completed!"