Giter Club home page Giter Club logo

action-counter's Introduction

Setting up a server (Ubuntu 13)

  1. install redis-server using apt-get install redis-server
  2. follow download and install direction on http://openresty.org/#Installation
  3. install git (sudo apt-get install git)
  4. add "include /usr/local/openresty/nginx/conf/include/*;" to openresty's nginx.conf, under the 'http' section (by default its in /usr/local/openresty/nginx/conf)
  5. add set worker_rlimit_nofile 30000 in nginx.conf
  6. update init.lua with the location of the GeoIP.dat *** notice - use the provided Capistrano deployment, and you can skip the following steps!
  7. add symlink from /usr/local/openresty/nginx/actioncounter to the directory of the project (e.g. /home/deploy/action-counter/current) (sudo ln -sf /home/deploy/action-counter/current/ /usr/local/openresty/nginx/action-counter
  8. mkdir /usr/local/openresty/nginx/conf/include
  9. add symlink from /usr/local/openresty/nginx/conf/include/actioncounter.conf to the actioncounter.nginx.conf file provided in this project. (sudo ln -sf /usr/local/openresty/nginx/action-counter/config/actioncounter.nginx.conf /usr/local/openresty/nginx/conf/include/actioncounter.conf)
  10. start redis-server (sudo service redis-server start) if its not already running
  11. start nginx (sudo nginx) if its not already running

Deployment

You can use the provided Capistrano deployment (assuming you have Ruby installed). Edit deploy.rb file and set the correct deploy user and your server, then run "cap deploy:setup" for the first time, to bootstrap the server (instead of manually doing steps 4-8 above). use "cap deploy" for deployment :-)

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.