Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5902c34
changes
jonnygovish Jun 24, 2020
bc9f8df
procfile
jonnygovish Jun 24, 2020
47b51dc
db name
jonnygovish Jun 24, 2020
7a239b5
Add a test file
jonnygovish Aug 6, 2020
ef7fadf
config file for the database
jonnygovish Aug 6, 2020
3892250
Add new dependencies
jonnygovish Aug 6, 2020
22d3625
add config
jonnygovish Aug 6, 2020
c4e2a3b
database config
jonnygovish Aug 7, 2020
6d3af18
Update _config.js
brianmarete Aug 13, 2020
67ae1a8
Update serverTest.js
brianmarete Aug 13, 2020
4f35c3b
Update package.json
brianmarete Aug 13, 2020
f01d53e
Update _config.js
brianmarete Aug 13, 2020
18ece3b
Update _config.js
brianmarete Aug 13, 2020
b8c7d2e
Update server.js
Calebkingeno03 Apr 16, 2024
5576112
Update _config.js
Calebkingeno03 Apr 16, 2024
335e065
Create Jenkinsfile
Calebkingeno03 Apr 16, 2024
059b81d
Update server.js
Calebkingeno03 Apr 16, 2024
cc28835
Update index.ejs
Calebkingeno03 Apr 16, 2024
d363899
Update index.ejs
Calebkingeno03 Apr 16, 2024
9541f7c
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
9619c61
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
b85f873
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
3669fd2
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
f4b8227
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
e326932
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
ed6a36b
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
8b5a2dc
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
9657b38
merging
Calebkingeno03 Apr 16, 2024
b805729
Update Jenkinsfile
Calebkingeno03 Apr 16, 2024
aa743a3
Update index.ejs
Calebkingeno03 Apr 16, 2024
041e892
Update index.ejs
Calebkingeno03 Apr 16, 2024
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/
52 changes: 52 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
pipeline{
environment{
BUILD_NUM=''
}
agent any
stages{
stage("Git checkout"){
steps{
git branch: "master",url: 'https://github.com/niconyango/gallery.git'
}
}
stage("Install npm"){
steps{
sh 'npm install'
}
}
stage("Test"){
steps{
sh 'npm test'
}
}
stage("Deploy to render"){
steps{
sh 'npm run'
}
}
stage("User Notification"){
steps{
slackSend color: 'good', message: "Build N°: ${env.BUILD_NUMBER} was successfully deployed in 'https://gallery-2.onrender.com/'"
}
}
}
post{
always{
emailext(
subject: 'Deplyment Status.${BUILD_STATUS}',
body: '''<html>
<body>
<p>Build Status:${BUILD_STATUS}</p>
<p>Build Number:${BUILD_NUMBER}</p>
<p>Check <a href='${BUILD_URL}'> output.</a></p>
</body>
</html>''',
to:'calebroykoech03@gmail.com',
from:'calebroykoech03@gmail.com',
replyTo:'calebroykoech03@gmail.com',
mimeType:'text/html'
)
}

}
}
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node server.js
6 changes: 3 additions & 3 deletions _config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ 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://DBCluster:gingahmulah03@cluster0.oypkn2s.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0',
development: 'mongodb+srv://DBCluster:gingahmulah03@cluster0.oypkn2s.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0',
test: 'mongodb+srv://DBCluster:gingahmulah03@cluster0.oypkn2s.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0',
}
module.exports = config;
Loading