Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Emergency Alert Application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
marinos
Emergency Alert Application
Commits
cb23935c
Commit
cb23935c
authored
4 months ago
by
Elisabethein
Browse files
Options
Downloads
Patches
Plain Diff
deploy to server in pipeline (changed frontend directory)
#127
parent
5fe1ca22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#48320
passed
4 months ago
Stage: build
Stage: test
Stage: frontend
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
with
2 additions
and
0 deletions
.gitlab-ci.yml
+
2
−
0
View file @
cb23935c
...
...
@@ -103,6 +103,8 @@ deploy:
-
scp EmergencyAlertApplication.jar $SSH_USER@$SERVER_IP:$SERVER_PATH_BACKEND
-
echo "Uploading frontend build to server"
-
scp -r eaa_frontend/dist/* $SSH_USER@$SERVER_IP:$SERVER_PATH_FRONTEND
-
echo "Copying frontend build to /var/www/html/dist"
-
ssh $SSH_USER@$SERVER_IP "sudo cp -r $SERVER_PATH_FRONTEND/* /var/www/html/dist"
-
echo "Restarting backend service"
-
ssh $SSH_USER@$SERVER_IP "cd $SERVER_PATH_BACKEND && sudo docker-compose stop backend && sudo docker-compose build backend && sudo docker-compose up -d backend"
-
echo "Restarting frontend service"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment