From 68f70f246aa8e8587942fb19775a5366d1cc66a7 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 6 Oct 2022 07:12:28 -0500 Subject: [PATCH] Add npm. Call main.js from local directory. --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index c0e59f1..8966575 100755 --- a/run.sh +++ b/run.sh @@ -5,13 +5,13 @@ ### Can docker-compose do this rather than running a sh file on the host OS? # Look at Dockerfile-ADD for doing git clones into a docker environment. # Out of scope for this project, this project is just the site. -if [[ ! `which php` || ! `which node` ]]; then - sudo apt install -y php-fpm nodejs +if [[ ! `which php` || ! `which node`|| ! `which npm` ]]; then + sudo apt install -y php-fpm nodejs npm fi npm install -main.js +./main.js ### exit 0