Giter VIP home page Giter VIP logo

personal's Introduction

#Heroku Express (heroku-node-wildcard), your wildcard node.js server for Heroku

This is a simple node.js server (node.js ver > 0.4.7) powered by express.js 2.4.6, included all the file Heroku needed (heroku guide Sep 2011)

You can use it on your own server with foreman

Edit

You can modify this server by editing app.js

Run

Using foreman to start the server locally (or on your own server)

$ foreman start

If you want to change the server file name ( app.js ), or start more service on the server start, please edit Procfile

Static File

You can put the static file under /public by default and using public/index.html as index page (Sorry that I am too lazy to allow you change the index file name and web directory from variable)

You may render the index from view by uncomment rss.render(...) and related view setting in app.configure

More package and dependency

Heroku using npm to manage the dependency, and they need to managed in package.json

More Worker

You need to change the Procfile according heroku guide Sep 2011

Also you need to scale the worker process.

More Scale

In the scale process you need to change the parameter if you have more dyno, e.g. heroku ps:scale web=2

Some Note

  • By default you need to scale process once ( heroku ps:scale web=1 ), changing file doesn't require to do the scaling again
  • MIME Type support made by express.js. if you need more, please reference to this gist for a mapping and do it on your own

personal's People

Contributors

vincicat avatar mvanlonden avatar

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.