File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11# Server Configuration
2- PORT=8000
3- HOST=localhost
2+ PORT=3400
3+ HOST=0.0.0.0
44
55# Security
66API_KEY=your-secure-api-key-here
7- CLI_COMMAND=docker compose up -d
7+ CLI_COMMAND=" docker compose up -d"
88# CLI Command Configuration
99CLI_WORKING_DIR=~
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ if [ "$EUID" -ne 0 ]; then
1010fi
1111
1212# Configuration
13- PROJECT_DIR=" /opt/cicd-cli-controller "
13+ PROJECT_DIR=$( PWD )
1414SERVICE_NAME=" cicd-cli-controller"
1515SERVICE_USER=" cicd-service"
16- NODE_VERSION=" 20 .x"
16+ NODE_VERSION=" 19 .x"
1717
1818echo " Installing CICD CLI Controller Service..."
1919
@@ -29,13 +29,10 @@ if ! id "$SERVICE_USER" &>/dev/null; then
2929 useradd -r -s /bin/false $SERVICE_USER
3030fi
3131
32- # Create project directory and set permissions
33- mkdir -p $PROJECT_DIR
34- cp -r ./* $PROJECT_DIR /
32+
3533chown -R $SERVICE_USER :$SERVICE_USER $PROJECT_DIR
3634
3735# Install dependencies
38- cd $PROJECT_DIR
3936npm install --production
4037
4138# Create systemd service file
You can’t perform that action at this time.
0 commit comments