Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
app
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
Container Registry
Model registry
Operate
Environments
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
Jonas Brunvoll Larsson
app
Commits
442b2a30
Commit
442b2a30
authored
5 years ago
by
jonaslarsson
Browse files
Options
Downloads
Patches
Plain Diff
Changing port back to 3000.
parent
ce2a3115
No related branches found
No related tags found
No related merge requests found
Pipeline
#80091
passed
5 years ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+26
-0
26 additions, 0 deletions
.gitlab-ci.yml
public/index.html
+1
-1
1 addition, 1 deletion
public/index.html
src/server.js
+1
-1
1 addition, 1 deletion
src/server.js
with
28 additions
and
2 deletions
.gitlab-ci.yml
+
26
−
0
View file @
442b2a30
image
:
node:latest
stages
:
-
build
# Jobs placed in build-stage will run first
-
test
# Jobs placed in test-stage will run after build-jobs
-
deploy
# Jobs placed in build-stage will run last after test-jobs
install
:
stage
:
build
script
:
-
npm install
# Keep node_modules-folder for the following stages:
artifacts
:
paths
:
-
node_modules
test
:
stage
:
test
# Job test will run in parallel with the job flow
script
:
-
npm test
flow
:
stage
:
test
# Job flow will run in parallel with the job test
script
:
-
npm install --global flow-bin
-
flow check
deploy
:
stage
:
deploy
script
:
...
...
This diff is collapsed.
Click to expand it.
public/index.html
+
1
−
1
View file @
442b2a30
...
...
@@ -4,6 +4,6 @@
<meta
charset=
"UTF-8"
/>
</head>
<body>
Running on port
2
000.
Running
back
on port
3
000.
</body>
</html>
This diff is collapsed.
Click to expand it.
src/server.js
+
1
−
1
View file @
442b2a30
...
...
@@ -9,7 +9,7 @@ app.use(express.static(path.join(__dirname, '../public')));
// The listen promise can be used to wait for the web server to start (for instance in your tests)
export
let
appListen
=
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
app
.
listen
(
2
000
,
(
error
:
?
Error
)
=>
{
app
.
listen
(
3
000
,
(
error
:
?
Error
)
=>
{
if
(
error
)
return
reject
(
error
.
message
);
console
.
log
(
'
Express server started
'
);
...
...
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