Code Monkey home page Code Monkey logo

faye-message's Introduction

Message Server

This is the repo for a publish-subscribe messaging system based on Faye.

Requirements

  • Ruby 2.2.4
  • Foreman gem
  • Redis

Local setup

  • Clone this repo
  • cd into the project's directory and $ bundle install
  • $ cp config/faye.sample.yml config/faye.yml
  • edit config/faye.yml for local development
  • $ cp Procfile.sample Procfile
  • edit Procfile to reflect the correct command to launch redis in your environment
  • $ foreman start
  • Faye server will listen on http://localhost:9292/faye

Deployment

Pre-requisites

  • Production server should meet the same requirements listed above (in the Requirements section)
  • Ensure a user (other than root) exists in the production server (typically deploy) and that such user has:
    • sudo privileges
    • password-less sudo privileges
    • password-less login access (via ssh keys)
  • $ cp config/faye.sample.yml config/faye.yml
  • edit config/faye.yml to add a strong secret_token value, remember, this will be the authentication token a request should provide in order to correctly publish to the Faye message server

Deployment flow

  • $ cp config/deploy/production.sample.rb config/deploy/production.rb
  • edit config/deploy/production.rb to add server IP address
  • when you're ready to deploy, just $ bundle exec cap production deploy

faye-message's People

Contributors

antillas21 avatar

Watchers

Senyi 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.