Replace job costing ro estimator template.
This commit is contained in:
30
_reference/test api setup.md
Normal file
30
_reference/test api setup.md
Normal file
@@ -0,0 +1,30 @@
|
||||
Clone Repository for:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "node-webhook-scripts",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"express": "^4.16.4"
|
||||
},
|
||||
"license": "SEE LICENCE IN LICENCE.md",
|
||||
"author": {
|
||||
"name": "Alexandre Pénombre",
|
||||
"email": "alexandre.penombre@gmail.com"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
hooks.js:
|
||||
|
||||
```javascript
|
||||
module.exports = [
|
||||
{
|
||||
path: "/pull",
|
||||
command: "git pull && npm i",
|
||||
cwd: "/home/ubuntu/io/",
|
||||
method: "post",
|
||||
},
|
||||
];
|
||||
```
|
||||
20
_reference/test-ecoystem.config.js
Normal file
20
_reference/test-ecoystem.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "IO Test API",
|
||||
cwd: "./io",
|
||||
script: "./server.js",
|
||||
env: {
|
||||
NODE_ENV: "test",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "Bitbucket Webhook",
|
||||
script: "./webhook/index.js",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user