Skip to content

vtk13/battle-city-js

Repository files navigation

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