Coder Social home page Coder Social logo

guard-unicorn's Introduction

class About
  def enjoys
    # TODO: Add Javascript
    %w[ ruby ]
  end

  def works_for
    %w[ Throwpoint WEForum ]
  end

  def for_hire?
    works_for.empty?
  end
end

guard-unicorn's People

Contributors

adie avatar andreimaxim avatar closer avatar cprussin avatar j3rn avatar jc00ke avatar jigfox avatar workmad3 avatar zukunftsalick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

guard-unicorn's Issues

Long delay when killing additional workers

I have unicorn running in development with 2 worker processes. When guard detects a change it immediately kills the first worker and it reloads it quickly. But it takes several seconds to kill the second worker. Check out the delay in the timestamps below.

The workers reload quickly if I haven't tried to access them. What's odd is when I make a change and quickly reload the request twice in a row (before guard has a chance to finish). On the first request the files haven't reloaded but on the second request it loads the changes and is significantly faster then waiting for guard to finish the job.

Any ideas?

[1] guard(main)> I, [2014-11-01T06:07:53.231217 #17182]  INFO -- : done reloading config_file=config/unicorn.rb
I, [2014-11-01T06:07:53.239484 #17182]  INFO -- : reaped #<Process::Status: pid 17202 exit 0> worker=0
I, [2014-11-01T06:07:53.240982 #17210]  INFO -- : Refreshing Gem list
Running in development mode
I, [2014-11-01T06:07:53.485146 #17210]  INFO -- : worker=0 ready
I, [2014-11-01T06:08:08.914691 #17182]  INFO -- : reaped #<Process::Status: pid 17204 exit 0> worker=1
I, [2014-11-01T06:08:08.916259 #17215]  INFO -- : Refreshing Gem list
Running in development mode
I, [2014-11-01T06:08:09.178852 #17215]  INFO -- : worker=1 ready

Any way to specify a custom rails env in the guardfile?

I used to do this before unicorn:

guard :rails, :port => 4000, :environment => 'guard_server' do
watch('Gemfile.lock')
watch('config/routes.rb')
watch(%r{^(config|lib)/.*})
end

I've tried this but it doesn't work:
guard :unicorn, :daemonize => false, :port => 4000, :rails_env => 'guard_server', :environment => 'guard_server' do
watch('Gemfile.lock')
watch('config/routes.rb')
watch(%r{^(config|lib)/.*})
end

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.