Code Monkey home page Code Monkey logo

integration-test-repo-demo's Introduction

integration-test-repo-demo

A demo of integration with Github

Build Status

integration-test-repo-demo's People

Contributors

danielstern avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

integration-test-repo-demo's Issues

Review app not deployed automatically.

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 503 App crached with /favicon.ico

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

AssertionError [ERR_ASSERTION]: Task function must be specified

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: '=='
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.