Skip to content
Open

Test #43

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node_modules
node_modules/
29 changes: 29 additions & 0 deletions JenkinsFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pipeline {
agent any
tool {nodejs "Node"}
stages {
stage('Clone the repo') {
steps {
git 'https://github.com/PitaKibunja/gallery.git'
}
}

stage('Install Dependencies') {
steps {
sh 'npm install'
}
}

stage('Test') {
steps {
sh 'npm test'
}
}

stage ('Deploy to Render'){
steps{
sh 'curl $RENDER_DEPLOY_HOOK'
}
}
}
}
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node server.js
7 changes: 4 additions & 3 deletions _config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ var config = {}

// Update to have your correct username and password
config.mongoURI = {
production: 'mongodb+srv://<USERNAME>:<PASSWORD>@gallery.wc344.mongodb.net/darkroom?retryWrites=true&w=majority',
development: 'mongodb+srv://<USERNAME>:<PASSWORD>@gallery.wc344.mongodb.net/darkroom-dev?retryWrites=true&w=majority',
test: 'mongodb+srv://<USERNAME>:<PASSWORD>@gallery.wc344.mongodb.net/darkroom-test?retryWrites=true&w=majority',

production: 'mongodb+srv://pita:DJRqnzsNtyzgtp2k@cluster0.0thoj.mongodb.net/darkroom?retryWrites=true&w=majority',
development: 'mongodb+srv://pita:DJRqnzsNtyzgtp2k@cluster0.0thoj.mongodb.net/darkroom-dev?retryWrites=true&w=majority',
test: 'mongodb+srv://pita:DJRqnzsNtyzgtp2k@cluster0.0thoj.mongodb.net/darkroom-test?retryWrites=true&w=majority',
}
module.exports = config;
Loading