Giter VIP home page Giter VIP logo

Comments (6)

skorfmann avatar skorfmann commented on May 4, 2024

Have you made any progress on this? I'll also have the need of some production environment in a bit and I'm still not sure about the best approach.

from clip.

axsuul avatar axsuul commented on May 4, 2024

Same here.

from clip.

skorfmann avatar skorfmann commented on May 4, 2024

Just deployed this stuff using capistrano with a rackup file utilising thin behind ngnix (communicating via unix-sockets) and separate worker processes. Will write about it in more detail once it's completely done and working.

But basically it boils down to this:

Extract the relevant parts from https://github.com/paulasmuth/fnordmetric/blob/master/fnordmetric-core/lib/fnordmetric/web/web.rb to your own config.ru

Wrap your worker processes with something like https://github.com/ghazel/daemons

We are not running acceptors at the moment.

from clip.

benschwarz avatar benschwarz commented on May 4, 2024

@skorfmann - Care to share your config.ru?

from clip.

skorfmann avatar skorfmann commented on May 4, 2024

@benschwarz here you go:

#!/usr/bin/env ruby

$: << File.expand_path(File.dirname(__FILE__))

require 'app'

use Rack::CommonLogger
use Rack::ShowExceptions

map "/stream" do
  run FnordMetric::WebSocket.new
end

map "/" do
  run FnordMetric::App.new({})
end

"app.rb" is your custom code for fnordmetric

from clip.

skorfmann avatar skorfmann commented on May 4, 2024

I've also written about a production deployment of this stuff: http://skorfmann.com/blog/2013/03/25/the-bumpy-road-to-fnordmetric/

from clip.

Related Issues (20)

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.