angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

doc change for openshift deployment #226

Closed mreddimasi closed 10 years ago

mreddimasi commented 10 years ago

When using the command yo angular-fullstack:openshift for existing app, could the following changes in the application code put as a note in the documentation for community, to include the openshift environment details.

production.js

mongo: {
    uri: process.env.MONGOLAB_URI ||
         process.env.MONGOHQ_URL ||
         process.env.OPENSHIFT_MONGODB_DB_URL+process.env.OPENSHIFT_APP_NAME ||
         'mongodb://localhost/fullstack'
  }
};

server.js - To include ip address to bind to while starting nodejs server

app.listen(config.port, config.ip, function () {
  console.log('Express server listening on %s:%d, in %s mode', config.ip, config.port, app.get('env'));
});

These details are available as part of the command yo angular-fullstack: deploy openshift on a new app, but not on existing app which require these details filled in by the developer to successfully deploy on openshift.

JaKXz commented 10 years ago

Thanks @mreddimasi for figuring this out, I was actually wondering this myself! You're welcome to document your steps in a PR :+1: