Is a bash script that install all the needed to save you time in hosting in production Nodejs web application
- Debian
- A repositery with nodejs app, where "npm run build" will build your website, and "npm run start" will start it
- a domain name
Clone the repo :
apt install git
git clone https://github.com/MrStaf/script-host-nodejs-debian
Then get into it, and run the installation
cd script-host-nodejs-debian
bash install.bash
The script will install NodeJs 16.0 LTS
Nginx proxy manager will help you to establish SSL to your NodeJs application without issues.
You will need to edit it manually, but it's on a nice web page, located in your-ip/domain:81
.
You can have multiple web applications, with it's proxy.
Just get in the script-host-nodejs-debian directory
cd script-host-nodejs-debian
And run
bash add.bash
Just get in the script-host-nodejs-debian directory
cd script-host-nodejs-debian
And run
bash remove.bash
Just get in the script-host-nodejs-debian directory
cd script-host-nodejs-debian
And run
bash update.bash
Just get in the script-host-nodejs-debian directory
cd script-host-nodejs-debian
And run
bash kill_all.bash
Just get in the script-host-nodejs-debian directory
cd script-host-nodejs-debian
And run
bash restart_all.bash