nodejs battlecity remake
JavaScript HTML CSS Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
src
.gitignore
README
favicon.ico
index.html
package.json
start-dev.sh
test.html
test.sh
webpack-client-config.js
webpack-server-config.js

README

Demo http://bc.vtkd.ru/

Install

Install nodejs then:
    npm install
    node_modules/webpack/bin/webpack.js src/client/init.js bundle.js

Run locally:
    node src/server serve-static

Run on server:
    start-stop-daemon -Sb -u tactic -d /var/www/bc --exec /usr/bin/nodejs -- src/server.js
    start-stop-daemon -K --exec /usr/bin/nodejs

    HAProxy config:
        http://stackoverflow.com/questions/4360221/haproxy-websocket-disconnection/4737648#4737648
        http://support.rightscale.com/06-FAQs/FAQ_0133_-_Why_won't_old_HAProxy_processes_exit%3F