Questions tagged [zeus]

Zeus is an environment preloader for Ruby, so that your development tasks such as console, server, generate, and specs/tests take less time to load.

Zeus is an environment preloader for Ruby, so that your development tasks such as console, server, generate, and specs/tests take less time to load. See the docs for more information.

99 questions
3
votes
1 answer

Using rspec, zeus and database_cleaner with two different active_record databases ends in undefined method `query_options' for nil:NilClass error

I'd like to use zeus (0.13.3) to preload my rails environment for an rails (3.2.11) app on ruby 2.0.0 and use database_cleaner (0.9.1) to clean the databases. This is working fine if as long as I use only one mysql database. In the app we have to…
Lars Schirrmeister
  • 2,215
  • 1
  • 22
  • 23
2
votes
4 answers

How do I get the last directory from a URL path using a Zeus rewrite rule?

I need a regular expression that will return the last directory in a path. e.g, from www.domain.com/shop/widgets/, return "widgets". I have an expression that almost works. [^/].*/([^/]+)/?$ It will return "widgets" from…
Matt
  • 251
  • 1
  • 5
  • 9
2
votes
0 answers

RubyMine -e:1:in `sleep': Interrupt Debug zeus server

I am trying to debug my custom rake file in a rails project. I followed the instructions of the official help page, and setup zeus server correctly. Every time I debug the zeus server, I get the message below: Fast Debugger (ruby-debug-ide…
Mazz
  • 71
  • 1
  • 8
2
votes
4 answers

Guard + Zeus + Rspec-Rails: undefined method 'configure' for Rspec:Module

I'm using the following: Rails 4.1.1 guard-zeus 2.0.0 rspec-rails 3.0.1 Out of box default rails g rspec:install and guard init When I run guard and save a spec file, I get the error: undefined method `configure` for RSpec:Module (NoMethodError) I…
mehulkar
  • 4,895
  • 5
  • 35
  • 55
2
votes
2 answers

Can't get rspec working with Zeus

I've read all the recommendations about how to get rspec on rails working with zeus. In particular, I've commented out "require 'rspec/autorun'" in spec/spec_helper.rb: # require 'rspec/autorun' I start up zeus in one terminal: zeus start Then in…
Johnster
  • 133
  • 1
  • 7
2
votes
1 answer

Rails testing with Zeus and Sidekiq

In my spec_helper I have require "sidekiq/testing". If I put Sidekiq::Testing.fake! right after that line, I get the uninitialized constant Sidekiq::Testing error when I run zues test spec/path/to/spec.rb Without adding in that require, zeus will…
jeremywoertink
  • 2,281
  • 1
  • 23
  • 29
2
votes
1 answer

Rails: can Zeus read the .env file?

I'm using Zeus to pre-load my Rails environment as a replacement for developing with Foreman. But Zeus isn't picking up values from my .env file. Is it possible for Zeus to do this?
Ollie Glass
  • 19,455
  • 21
  • 76
  • 107
2
votes
1 answer

rails zeus custom_plan for server port modification

I want to use zeus s -p 12345 in my project. Of course I could use shell alias to make this like alias zsp='zeus s -p 12345' I'd like to know if there's a way to directly modify the custom plan to make this? So next time only need to type zeus s…
Transparency
  • 365
  • 3
  • 10
2
votes
1 answer

How to make zeus to start solr instances for test and development environments?

I would like to add a custom zeus command in custom_plan.rb for starting solr/sunspot and make this to be automatically started for test/development environments when zeus starts. I am currently running solr for both instances using rake tasks: …
knx
  • 340
  • 2
  • 13
2
votes
3 answers

Is there a way for Apache to silently ignore unrecognized .htaccess directives?

I'm in the unfortunate position of having an Apache staging server combined with a Zeus web server. (Not my choice). I'd like to be able to include a Zeus-specific directive in the .htaccess file (e.g. ContentCompressionEnabled) and, if possible, …
MZB
  • 2,071
  • 3
  • 21
  • 38
2
votes
1 answer

How to run two Zeus servers

I have several projects in different folders, can I run several Zeus instances, with different port for each one? I have gotten till https://github.com/burke/zeus/blob/master/docs/ruby/modifying.md. But I have no clue if this can be done. Added…
sites
  • 21,417
  • 17
  • 87
  • 146
1
vote
0 answers

Convert mod_rewrite rules to Zeus web server

I need to run this Apache .htaccess file on Zeus server, but I am not sure how to make it Zeus compatible. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f #//not to effect images or style sheets RewriteCond %{REQUEST_FILENAME}…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
1
vote
1 answer

Rspec TypeError: superclass mismatch for class Cipher

I get an error when i'm trying to launch rspec : An error occurred while loading ./spec/factories_spec.rb. Failure/Error: FactoryGirl.factories.map(&:name).each do |factory_name| describe "The #{factory_name} factory" do it 'is valid'…
Xero
  • 3,951
  • 4
  • 41
  • 73
1
vote
3 answers

301 redirects on Zeus web server

Unfortunately one of my clients uses Zeus web server at the hosting company he uses. I have never used it before. I need to set up simple 301 redirects but Zeus does not use .htaccess, it uses its own file rewrite.script Does anyone know how to do…
gteh
  • 741
  • 10
  • 17
1
vote
1 answer

Can't Run a single test when using Zeus Parallel Spec along with Rspec. Focus:true doesn't work

Rspec provides the handy ability to place focus: true by a test to make it run in isolation. And running $bundle exec rspec spec works to make this functionality true However, usage of parallel specs alone $rake parallel:spec or with Zeus : $zeus…
Seyon
  • 481
  • 6
  • 13