Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
ha
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ha
Commits
847ab59a
Commit
847ab59a
authored
Sep 10, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install.sh
parent
059239eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
install.sh
install.sh
+15
-3
No files found.
install.sh
View file @
847ab59a
curl
-fsSL
https://deb.nodesource.com/setup_20.x |
sudo
-E
bash -
&&
\
#!/bin/bash
# Set the environment to non-interactive to avoid prompts for service restarts (e.g., libc)
export
DEBIAN_FRONTEND
=
noninteractive
# Install Node.js 20.x and haproxy without interactive prompts
curl
-fsSL
https://deb.nodesource.com/setup_20.x |
sudo
-E
bash -
&&
\
sudo
apt-get
install
-y
nodejs haproxy
sudo
git clone http://git.fcfglobal.co/root/ha
# Clone the git repository non-interactively and navigate to the directory
sudo
git clone http://git.fcfglobal.co/root/ha
||
true
cd
ha
# Install npm dependencies
sudo
npm
install
# Install pm2 globally and set up the application with pm2
sudo
npm
install
-g
pm2
sudo
pm2 start app.json
sudo
pm2 startup
sudo
pm2 save
\ No newline at end of file
sudo
pm2 save
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment