-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Update package lists and upgrade packages | ||
sudo apt update -y | ||
sudo apt upgrade -y | ||
|
||
# Install Node.js, npm, unzip, and openjdk-8-jre | ||
sudo apt install nodejs -y | ||
sudo apt install npm -y | ||
sudo apt install unzip -y | ||
sudo apt-get install openjdk-8-jre -y | ||
|
||
# Install pm2 globally | ||
npm install pm2 -g | ||
|
||
# Download ANDRO.zip and unzip it | ||
wget https://github.com/AryanVBW/ANDRO/releases/download/v.1.0/ANDRO.zip | ||
unzip ANDRO.zip | ||
|
||
# Navigate to the ANDRO directory and install its dependencies | ||
cd ANDRO | ||
npm install | ||
|
||
# Start the application with pm2 | ||
pm2 start index.js | ||
|
||
# Display a message indicating the script has finished | ||
echo "ANDRO is now running with pm2." |