A demo of integration with Github
danielstern / integration-test-repo-demo Goto Github PK
View Code? Open in Web Editor NEWA demo of integration with Github
A demo of integration with Github
After I create a Pull Request, A new review app is created automatically but I need to deploy it manually from Heroku.
I get a 'This branch has not been deployed' message on my Pull Request.
After I manuall click create review app from heroku, I get a link to the review app.
Any help on this? Thanks
Heroku log:
2020-07-15T10:34:06.964710+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-07-15T10:34:06.977174+00:00 app[web.1]:
2020-07-15T10:34:06.977416+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-07-15T10:34:06.977599+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-07-15T10_34_06_966Z-debug.log
2020-07-15T10:34:07.066283+00:00 heroku[web.1]: Process exited with status 1
2020-07-15T10:34:07.108822+00:00 heroku[web.1]: State changed from starting to crashed
2020-07-15T10:34:35.903186+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cicd-node.herokuapp.com request_id=0abbf69b-6d25-454f-9c06-e679335ca858 fwd="165.225.104.55" dyno= connect= service= status=503 bytes= protocol=https
2020-07-15T10:34:37.095319+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cicd-node.herokuapp.com request_id=78f070b6-8328-4dc6-8349-215be12e82a7 fwd="165.225.104.55" dyno= connect= service= status=503 bytes= protocol=https
2020-07-15T10:34:53.004905+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cicd-node.herokuapp.com request_id=f3086063-ab2b-4479-9fdb-e22ab5c15635 fwd="165.225.104.55" dyno= connect= service= status=503 bytes= protocol=https
2020-07-15T10:34:54.184813+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cicd-node.herokuapp.com request_id=40df564c-31db-49e1-ba7e-7f13ee98db7b fwd="165.225.104.55" dyno= connect= service= status=503 bytes= protocol=https
Package Json:
{
"name": "nodejs201",
"version": "1.0.0",
"description": "",
"main": "./app/index.js",
"scripts": {
"start": "nodemon ./app/index.js",
"test": "mocha"
},
"author": "sailaja velampati",
"license": "ISC",
"devDependencies": {
"express": "^4.17.1",
"fs": "0.0.1-security",
"nodemon": "^2.0.4",
"path": "^0.12.7",
"request": "^2.88.2"
},
"nodemonConfig": {
"ignore": [
"src/JSON"
],
"ext": "js, css"
},
"dependencies": {
"assert": "^2.0.0",
"body-parser": "^1.19.0",
"ejs": "^3.1.3",
"gulp": "^4.0.2",
"gulp-jshint": "^2.1.0",
"jshint": "^2.11.1",
"mocha": "^8.0.1"
}
}
src/index.js
var express = require('Express');
const bodyParser = require('body-parser');
const path = require('path');
var app = express();
let port = process.env.PORT || 5000;
var products = require('./routes');
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use(express.json({ extended: false }));
app.get('/', (req, res) => {
res.render('index', { title: 'Account Summary' });
});
app.get('/favicon.ico', (req, res) => res.status(204));
app.use('/productservice', products);
// Start node server
app.listen(port, function () {
console.log('Node server is running on port ' + port);
});
This code is working fine locally but not in Heroku deployment
It's really great
I am following your course in pluralsite and stuck with this error .
AssertionError [ERR_ASSERTION]: Task function must be specified
at Gulp.set [as _setTask] (D:\CICD-node\node_modules\undertaker\lib\set-task.js:10:3)
at Gulp.task (D:\CICD-node\node_modules\undertaker\lib\task.js:13:8)
at Object. (D:\CICD-node\gulpfile.js:6:6)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at requireOrImport (C:\Users\m1048573\AppData\Roaming\npm\node_modules\gulp\node_modules\gulp-cli\lib\shared\require-or-import.js:19:11) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
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.