Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HeavyTraffic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
M2947_2020
HeavyTraffic
Commits
2c4d1e22
Commit
2c4d1e22
authored
4 years ago
by
M2947
Browse files
Options
Downloads
Patches
Plain Diff
edited yml file
parent
a0621578
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#243026
failed
4 years ago
Stage: deploy
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-3
5 additions, 3 deletions
.gitlab-ci.yml
with
5 additions
and
3 deletions
.gitlab-ci.yml
+
5
−
3
View file @
2c4d1e22
...
...
@@ -10,9 +10,11 @@ deploy:
-
echo 'Started Deploying'
-
ls /home/ubuntu/ -l -a
-
sudo pm2 start Tavara-\ raskaan\ liikenne/backend/indes.js --restart-delay
3000
-
cd Tavara-\ raskaan\ liikenne/backend/
-
npm install
-
sudo pm2 start indes.js --restart-delay
3000
#changing the local host to server IP address
-
sed -i 's/localhost/86.50.252.101/'
Tavara-\ raskaan\ liikenne
/frontend/traffic/src/components/Url.js
-
sed -i 's/localhost/86.50.252.101/'
..
/frontend/traffic/src/components/Url.js
only
:
...
...
@@ -24,7 +26,7 @@ build:
script
:
-
echo "Building"
-
pwd
-
cd
Tavara-\ raskaan\ liikenne
/frontend/traffic
-
cd
..
/frontend/traffic
-
npm install
-
npm run build
-
serve -s build -l
80
...
...
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