arunoda / nariya Goto Github PK
View Code? Open in Web Editor NEWContinuous Deployment Server
Home Page: http://dokeeno.com
Continuous Deployment Server
Home Page: http://dokeeno.com
It will get the startScript (which is undefined and try to execute it and gives an error there after.
Fix: Avoid app starting if it does not have startScrip
Nariya works great, it updates the repository perfectly. I just so happens that I have to restart forever (stop and start) my server to see changes. Why?
Get the name of the using a file APPNAME in the source directory and symlynk it with the start script and run.
This allows multiple instances running without breaking with forever.
I have two config files, which should be used?
/home/thomas/.npm/nariya/0.1.15/package/conf/nariya.conf
/usr/lib/node_modules/nariya/conf/nariya.conf
Should I make
/home/thomas/.nariya/nariya.config
Deploy also push into a wrong branch
if it's a node project (you could almost assume this with the presence of a package.json), should use npm start
script (that's what it's there for) instead of a custom 'startScript' declaration.
A hook script to be executed before the git pull
Bitbucket commits in array and those elements contains the branch.
But some of the elements does not contains the branch name.
One might can (I think)
So we need to check the whole array for this.
payload=%7B%22repository%22%3A+%7B%22website%22%3A+%22http%3A%2F%2Fkodeincloud.com%2F%22%2C+%22fork%22%3A+false%2C+%22name%22%3A+%22appzone-cloud-simulator%22%2C+%22scm%22%3A+%22git%22%2C+%22absolute_url%22%3A+%22%2Farunoda%2Fappzone-cloud-simulator%2F%22%2C+%22owner%22%3A+%22arunoda%22%2C+%22slug%22%3A+%22appzone-cloud-simulator%22%2C+%22is_private%22%3A+true%7D%2C+%22commits%22%3A+%5B%7B%22node%22%3A+%221d4f6d526b31%22%2C+%22files%22%3A+%5B%7B%22type%22%3A+%22modified%22%2C+%22file%22%3A+%22package.json%22%7D%5D%2C+%22branches%22%3A+%5B%5D%2C+%22branch%22%3A+null%2C+%22utctimestamp%22%3A+%222011-12-10+09%3A48%3A43%2B00%3A00%22%2C+%22author%22%3A+%22arunoda%22%2C+%22timestamp%22%3A+%222011-12-10+10%3A48%3A43%22%2C+%22raw_node%22%3A+%221d4f6d526b31b7d677f3cb79022db8be27339b55%22%2C+%22parents%22%3A+%5B%2288bba5d7c13e%22%5D%2C+%22raw_author%22%3A+%22Arunoda+Susiripala+%3Carunoda.susiripala%40gmail.com%3E%22%2C+%22message%22%3A+%22added+spaces+to+readme%5Cn%22%2C+%22size%22%3A+-1%2C+%22revision%22%3A+null%7D%2C+%7B%22node%22%3A+%22dd7e13fafaf3%22%2C+%22files%22%3A+%5B%7B%22type%22%3A+%22modified%22%2C+%22file%22%3A+%22package.json%22%7D%5D%2C+%22branches%22%3A+%5B%5D%2C+%22branch%22%3A+null%2C+%22utctimestamp%22%3A+%222011-12-10+09%3A48%3A59%2B00%3A00%22%2C+%22author%22%3A+%22arunoda%22%2C+%22timestamp%22%3A+%222011-12-10+10%3A48%3A59%22%2C+%22raw_node%22%3A+%22dd7e13fafaf34ea6624a12ea9221051b32fa6251%22%2C+%22parents%22%3A+%5B%221d4f6d526b31%22%5D%2C+%22raw_author%22%3A+%22Arunoda+Susiripala+%3Carunoda.susiripala%40gmail.com%3E%22%2C+%22message%22%3A+%22added+removed+to+readme%5Cn%22%2C+%22size%22%3A+-1%2C+%22revision%22%3A+null%7D%2C+%7B%22node%22%3A+%22a0e0cfed8eb2%22%2C+%22files%22%3A+%5B%7B%22type%22%3A+%22modified%22%2C+%22file%22%3A+%22readme.md%22%7D%5D%2C+%22branch%22%3A+%22master%22%2C+%22utctimestamp%22%3A+%222011-12-10+09%3A49%3A11%2B00%3A00%22%2C+%22author%22%3A+%22arunoda%22%2C+%22timestamp%22%3A+%222011-12-10+10%3A49%3A11%22%2C+%22raw_node%22%3A+%22a0e0cfed8eb2ed8f1154c24b943e5959d01bad05%22%2C+%22parents%22%3A+%5B%22dd7e13fafaf3%22%5D%2C+%22raw_author%22%3A+%22Arunoda+Susiripala+%3Carunoda.susiripala%40gmail.com%3E%22%2C+%22message%22%3A+%22added+removed+to+readme%5Cn%22%2C+%22size%22%3A+-1%2C+%22revision%22%3A+null%7D%5D%2C+%22canon_url%22%3A+%22https%3A%2F%2Fbitbucket.org%22%2C+%22user%22%3A+%22arunoda%22%7D
{
"repository": {
"website": "http://kodeincloud.com/",
"fork": false,
"name": "appzone-cloud-simulator",
"scm": "git",
"absolute_url": "/arunoda/appzone-cloud-simulator/",
"owner": "arunoda",
"slug": "appzone-cloud-simulator",
"is_private": true
},
"commits": [
{
"node": "1d4f6d526b31",
"files": [
{
"type": "modified",
"file": "package.json"
}
],
"branches": [],
"branch": null,
"utctimestamp": "2011-12-10 09:48:43+00:00",
"author": "arunoda",
"timestamp": "2011-12-10 10:48:43",
"raw_node": "1d4f6d526b31b7d677f3cb79022db8be27339b55",
"parents": [
"88bba5d7c13e"
],
"raw_author": "Arunoda Susiripala <[email protected]>",
"message": "added spaces to readme\n",
"size": -1,
"revision": null
},
{
"node": "dd7e13fafaf3",
"files": [
{
"type": "modified",
"file": "package.json"
}
],
"branches": [],
"branch": null,
"utctimestamp": "2011-12-10 09:48:59+00:00",
"author": "arunoda",
"timestamp": "2011-12-10 10:48:59",
"raw_node": "dd7e13fafaf34ea6624a12ea9221051b32fa6251",
"parents": [
"1d4f6d526b31"
],
"raw_author": "Arunoda Susiripala <[email protected]>",
"message": "added removed to readme\n",
"size": -1,
"revision": null
},
{
"node": "a0e0cfed8eb2",
"files": [
{
"type": "modified",
"file": "readme.md"
}
],
"branch": "master",
"utctimestamp": "2011-12-10 09:49:11+00:00",
"author": "arunoda",
"timestamp": "2011-12-10 10:49:11",
"raw_node": "a0e0cfed8eb2ed8f1154c24b943e5959d01bad05",
"parents": [
"dd7e13fafaf3"
],
"raw_author": "Arunoda Susiripala <[email protected]>",
"message": "added removed to readme\n",
"size": -1,
"revision": null
}
],
"canon_url": "https://bitbucket.org",
"user": "arunoda"
}
payload is below
%7B%22repository%22%3A%20%7B%22website%22%3A%20%22%22%2C%20%22fork%22%3A%20false%2C%20%22name%22%3A%20%22kodeincloud-ide%22%2C%20%22scm%22%3A%20%22git%22%2C%20%22absolute_url%22%3A%20%22%2Farunoda%2Fkodeincloud-ide%2F%22%2C%20%22owner%22%3A%20%22arunoda%22%2C%20%22slug%22%3A%20%22kodeincloud-ide%22%2C%20%22is_private%22%3A%20true%7D%2C%20%22commits%22%3A%20%5B%7B%22node%22%3A%20%221fb0f8ccb93d%22%2C%20%22files%22%3A%20%5B%7B%22type%22%3A%20%22modified%22%2C%20%22file%22%3A%20%22readme.md%22%7D%5D%2C%20%22branches%22%3A%20%5B%5D%2C%20%22branch%22%3A%20null%2C%20%22utctimestamp%22%3A%20%222011-12-20%2011%3A31%3A24%2B00%3A00%22%2C%20%22author%22%3A%20%22arunoda%22%2C%20%22timestamp%22%3A%20%222011-12-20%2012%3A31%3A24%22%2C%20%22raw_node%22%3A%20%221fb0f8ccb93db8efb35613601c67e01d8ee7913f%22%2C%20%22parents%22%3A%20%5B%229c74b5f728ab%22%5D%2C%20%22raw_author%22%3A%20%22Arunoda%20Susiripala%20%3Carunoda.susiripala%40gmail.com%3E%22%2C%20%22message%22%3A%20%22removed%20readme%20spaces%5Cn%22%2C%20%22size%22%3A%20-1%2C%20%22revision%22%3A%20null%7D%2C%20%7B%22node%22%3A%20%228308789d0f29%22%2C%20%22files%22%3A%20%5B%7B%22type%22%3A%20%22modified%22%2C%20%22file%22%3A%20%22readme.md%22%7D%5D%2C%20%22branch%22%3A%20%22master%22%2C%20%22utctimestamp%22%3A%20%222011-12-20%2011%3A31%3A47%2B00%3A00%22%2C%20%22author%22%3A%20%22arunoda%22%2C%20%22timestamp%22%3A%20%222011-12-20%2012%3A31%3A47%22%2C%20%22raw_node%22%3A%20%228308789d0f29219a74df6796e9a95d8222cd6ae1%22%2C%20%22parents%22%3A%20%5B%228f34476ff62a%22%2C%20%221fb0f8ccb93d%22%5D%2C%20%22raw_author%22%3A%20%22Arunoda%20Susiripala%20%3Carunoda.susiripala%40gmail.com%3E%22%2C%20%22message%22%3A%20%22Merge%20branch%20%27hot-ff_editor_nothing_fix%27%5Cn%22%2C%20%22size%22%3A%20-1%2C%20%22revision%22%3A%20null%7D%5D%2C%20%22canon_url%22%3A%20%22https%3A%2F%2Fbitbucket.org%22%2C%20%22user%22%3A%20%22arunoda%22%7D
JSON
{
"repository": {
"website": "",
"fork": false,
"name": "kodeincloud-ide",
"scm": "git",
"absolute_url": "/arunoda/kodeincloud-ide/",
"owner": "arunoda",
"slug": "kodeincloud-ide",
"is_private": true
},
"commits": [
{
"node": "1fb0f8ccb93d",
"files": [
{
"type": "modified",
"file": "readme.md"
}
],
"branches": [],
"branch": null,
"utctimestamp": "2011-12-20 11:31:24+00:00",
"author": "arunoda",
"timestamp": "2011-12-20 12:31:24",
"raw_node": "1fb0f8ccb93db8efb35613601c67e01d8ee7913f",
"parents": [
"9c74b5f728ab"
],
"raw_author": "Arunoda Susiripala <[email protected]>",
"message": "removed readme spaces\n",
"size": -1,
"revision": null
},
{
"node": "8308789d0f29",
"files": [
{
"type": "modified",
"file": "readme.md"
}
],
"branch": "master",
"utctimestamp": "2011-12-20 11:31:47+00:00",
"author": "arunoda",
"timestamp": "2011-12-20 12:31:47",
"raw_node": "8308789d0f29219a74df6796e9a95d8222cd6ae1",
"parents": [
"8f34476ff62a",
"1fb0f8ccb93d"
],
"raw_author": "Arunoda Susiripala <[email protected]>",
"message": "Merge branch 'hot-ff_editor_nothing_fix'\n",
"size": -1,
"revision": null
}
],
"canon_url": "https://bitbucket.org",
"user": "arunoda"
}
When Sending the Email change title [CD: Appname] Successfully Deployed to [CD] Appname - Successfully Deployed
Otherwise all the emails are coming under one email thread as it identify Successfully Deployed only as the title
I see that it uses git pull
. Does nariya have any mechanism for updating modules based on updates to package.json? Or even running npm install
if it needs to?
Currently NO_DEPLOY check is happening after the git pull. It should be happens after the pull.
For that use this. Fetch git pull and run the app in a seperate place rather than the git source location.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.