Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gdd-sigma-poc
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
Guillaume WANG
gdd-sigma-poc
Commits
9e2b1cfc
Commit
9e2b1cfc
authored
6 years ago
by
Guillaume WANG
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.binets.fr:br/sigma-backend
parents
fe5ef0dc
47252609
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-12
8 additions, 12 deletions
.gitlab-ci.yml
knexfile.js
+2
-2
2 additions, 2 deletions
knexfile.js
with
10 additions
and
14 deletions
.gitlab-ci.yml
+
8
−
12
View file @
9e2b1cfc
...
@@ -25,28 +25,23 @@ stages:
...
@@ -25,28 +25,23 @@ stages:
# make migrations on and seed the db
# make migrations on and seed the db
install-dependencies
:
install-dependencies
:
stage
:
install
stage
:
install
before_script
:
-
npm i -g npm
script
:
script
:
-
npm i
nstall -q
-
npm
c
i
artifacts
:
artifacts
:
paths
:
paths
:
-
node_modules/
-
node_modules/
tags
:
-
build
build
:
build
:
stage
:
build
stage
:
build
before_script
:
before_script
:
-
export NODE_ENV=staging
-
echo $LDAP_CONN_CONFIG > ldap_connexion_config.json
-
echo $LDAP_CONN_CONFIG > ldap_connexion_config.json
script
:
script
:
npm run build
-
npm run build
-
knex migrate:latest
-
knex seed:run
artifacts
:
artifacts
:
paths
:
paths
:
-
build/
-
build/
tags
:
-
build
-
database
deploy-staging
:
deploy-staging
:
stage
:
deploy
stage
:
deploy
...
@@ -63,9 +58,10 @@ deploy-staging:
...
@@ -63,9 +58,10 @@ deploy-staging:
-
ssh -p22 sigma-dev@roued "rm -rf /opt/sigma-back-dev/assets"
-
ssh -p22 sigma-dev@roued "rm -rf /opt/sigma-back-dev/assets"
-
scp -p22 -r build/ sigma-dev@roued:/opt/sigma-back-dev/build
-
scp -p22 -r build/ sigma-dev@roued:/opt/sigma-back-dev/build
-
scp -p22 -r assets/ sigma-dev@roued:/opt/sigma-back-dev/assets
-
scp -p22 -r assets/ sigma-dev@roued:/opt/sigma-back-dev/assets
-
scp -p22 -r db/ sigma-dev@roued:/opt/sigma-back-dev/db
-
scp -p22 knexfile.js sigma-dev@roued:/opt/sigma-back-dev/knexfile.js
-
ssh -p22 sigma-dev@roued "cd /opt/sigma-back-dev && knex migrate:latest && knex seed:run"
-
scp -p22 package.json "package-lock.json" ldap_config.json ldap_connexion_config.json sigma-back-dev.service sigma-dev@roued:/opt/sigma-back-dev/
-
scp -p22 package.json "package-lock.json" ldap_config.json ldap_connexion_config.json sigma-back-dev.service sigma-dev@roued:/opt/sigma-back-dev/
environment
:
environment
:
name
:
staging
name
:
staging
url
:
http://129.104.210.10:3000
url
:
http://129.104.210.10:3000
tags
:
-
deployment
This diff is collapsed.
Click to expand it.
knexfile.js
+
2
−
2
View file @
9e2b1cfc
...
@@ -30,10 +30,10 @@ module.exports = {
...
@@ -30,10 +30,10 @@ module.exports = {
directory
:
path
.
resolve
(
'
./db/seeds
'
)
directory
:
path
.
resolve
(
'
./db/seeds
'
)
}
}
},
},
production
:
{
staging
:
{
client
:
'
pg
'
,
client
:
'
pg
'
,
connection
:
{
connection
:
{
host
:
'
localhost
'
,
host
:
'
129.201.104.10
'
,
user
:
'
will
'
,
user
:
'
will
'
,
password
:
'
password
'
,
password
:
'
password
'
,
database
:
'
sigma_dev
'
,
database
:
'
sigma_dev
'
,
...
...
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