similar to: test env. differs from development env, tests breaking

Displaying 20 results from an estimated 300 matches similar to: "test env. differs from development env, tests breaking"

2014 Aug 25
1
tinc 1.1 - Improve Hostname Support
Currently, the tinc application which is part of tinc 1.1 does not support the ability to handle `Name = $HOST` lines in tinc.conf. This set of patches refactors get_name in order to be able to support this configuration option in the tinc binary. After having read through the codebase, it seems like we could really do for a heavy refactoring as there is a lot of poorly coupled and duplicated
2004 Aug 06
2
XML statistics on remote server
what i did in this situation was dump the stats/status file to the local server through a lynx --dump call from php .. and then i also update a sql table to reflect the changes so i can poll that instead .. a. <p>On Thu, 26 Feb 2004, MacSym wrote: > > Hi everybody, > > I am wondering if it is possible to generate the XML/XSL files on a remote > server (status.xsl,
2008 Nov 25
0
Sanitizing the New Session Key Format
Facebook''s new session format contains periods and underscores which appear to be breaking mem_cache_store. To get my app working again, I appended the following code to the end of environment.rb class CGI class Session class MemCacheStore def check_id(id) #:nodoc:# id = id.gsub(''-'', '''').gsub(''.'',
2010 Nov 15
1
Dashes in node names
Hi, I'am using a script which manages the setup of nodes. This depends on zeroconf and so the tinc node name and the hostname must match. But tinc doesn't allow dashes in node names. Is this really is necessary? Dashes in hostnames are not really uncommon. Is there something which prevents appling such a diff?: ----- start diff ----- diff -ruNp tinc-1.0.13/src/protocol.c
2019 Apr 19
1
selftest: Perl error "Insecure $ENV{ENV} while running setgid at /home/user/src/samba-git/samba/source3/script/tests/printing/modprinter.pl line 138."
In my environment the selftest for samba3.rpc.spoolss.printer was failing at source3/script/tests/printing/modprinter.pl(138) with the Perl error in subject: Insecure $ENV{ENV} while running setgid at /home/user/src/samba-git/samba/source3/script/tests/printing/modprinter.pl line 138 code is: ============================== delete @ENV{'BASH_ENV'}; $ENV{'PATH'} =
2006 May 16
2
Pass env var from Apache to Mongrel?
I use Apache to serve the static pages and let Mongrel handle Rails requests via mod_rewrite/proxy. Apache RewriteRule can set environment variable on the fly, and this is one of the features I used, set an env var based on domain name. I used to use SCGI Runner which was fine as the env var was passed to Rails via scgi protocol. I seems can''t find a way to set env var in Mongrel on
2007 Sep 10
1
Asked for a remote server ? nil, ENV["FERRET_USE_LOCAL_IN...
Hello, I know this subject as been talked many time, but i can not figure out how to get rid of this... ENV : ruby 1.8.4, ferret 0.11.4, acts_as_ferret 0.4.1 under win32 Error : Asked for a remote server ? nil, ENV["FERRET_USE_LOCAL_INDEX"] is nil, looks like we are not the server Will use local index. My application is working find, with 4 mongrels, but i got this message on
2007 Sep 08
0
rspec_on_rails - necessary to force "test" env?
Hi all rspec_on_rails/lib/spec/rails.rb starts: ------ dir = File.dirname(__FILE__) require ''application'' silence_warnings { RAILS_ENV = "test" } ------ That force into "test" environment is causing me trouble and I''ve commented it out. Why? I''m testing a plugin, and have a sort of mini rails app that I use for the specs. The
2006 Nov 04
0
PostgreSQL ActiveRecord default localized date assigned in test env
Hi, today I''ve configured an XUbuntu as workstation (ok I know...). Using the following packages to make Rails interact with Postgres: ii libpgsql-ruby1.8 0.7.1-7 ii postgresql-8.1 8.1.4-0ubuntu1 using rails 1.1.6 from gems. The problem came up just on the testing environment, when I save a model I get a: ActiveRecord::StatementInvalid:
2006 Aug 04
0
Need to set production env route for images & stylesheets?
When manually editing my files for production deployment do I need to edit .htaccess or routes.rb to include the images and stylesheets directories so they''re still found like in my local development environment? I''m FTP''ing my "appname" directory to my hosting service to deploy. Unfortunately they don''t allow ssh/capistrano access and have no
2006 Aug 04
0
Re: Passing env var from Apache to Mongrel
Hi Yan, If you just need to access the env var which doesn''t change like SERVER_NAME, you should be able to access it directly using "request". However, if your env var is dynamicly set, you can try my way. I use mod_rewrite to proxy to Mongrel. In your httpd.conf (you need mod_header) RequestHeader set X_YOUR_ENV your_value And in Rails access it by
2006 Jun 23
1
@request.env and mongrel
Hi, I don''t know if this question should be posted here on the Rails list or the Mongrel list, but I''ll try here first. I had been using Aapache+FCGI and when I run the following code from my server''s domain "perficient.com" it returns "perficient.com:80": port = @request.env["SERVER_PORT"]==''80'' ? '''' :
2006 May 14
1
Does anyone know how to change timeout for production env?
Does anyone know how to change timeout for the production environment? My action runs for ~2 minutes then timesout in production mode. In development mode it is ok. Thanks Chris -- Posted via http://www.ruby-forum.com/.
2006 May 22
2
finding out the remote users username ENV[REMOTE_USER] ?
I''m trying to set the modified_by in my user table from the remote user name. I have htaccess set up for the rails directory but I can''t seem to get it to read the remote users name. is ENV[REMOTE_USER] the correct syntax? I searched but I can''t seem to find a definitive answer. Thank you for any help! Charlie Bowman http://www.recentrambles.com -------------- next
2006 May 25
2
Capistrano only runs migration against production env?
All, Just read in the Capistrano manual about the Capistrano "migrate" task. There it says that: "By default, all this task does is change to the directory of your current release (as indicated by the current symlink), and run rake RAILS_ENV=production migrate. You can specify that it should run against the latest release (regardless of what the current release is) by setting
2006 Mar 03
2
ENV[''RAILS_ENV''] pb
Hello, I want to put my app in production mode. So I write this line in environment.rb : ENV[''RAILS_ENV''] = "production" I restart webrick. If I write <%= ENV.inspect %> I have the correct "RAILS_ENV"=>"production" But browse my site and look the log, the development.log is still growing and the production.log stay to 0 ko
2006 Mar 12
0
Setting env vars from within a Rails app?
Greetings! I''m trying to set an environment variable in Rails. Why? I can''t use RMagick unless I do so. I can do it from the shell, run irb, and then require ''RMagick'' works. So far so good. But how can I do this from my application? I''m on a shared host so I''ve put in a ticket to have something like this added to httpd.conf: SetEnv
2006 Mar 28
1
Using request.env[''REMOTE_HOST'']
Hi, I''m currently using request.env[''REMOTE_HOST''] to pull back the remote users IP address. This worked fine in development (and production) under Webrick but when I tried to use it with mongrel, it kicked back an error. Is there a more appropriate way to find out the remote users IP address? Thanks in advance! -- Posted via http://www.ruby-forum.com/.
2006 Mar 28
1
Capistrano: env not setup properly over ssh
Hi, If I make a Capistrano task like task :test, :roles => :app do run "env" end It prints something completely different than if I just do ssh login@host env I need all my login scripts to run so all my environment vars (including PATH) are set. All my Capistrano tasks are failing because the paths are setup properly. Thanks for the help. -- Posted via
2010 Feb 19
1
env: ruby1.9: No such file or directory - FIX
In the root of a rails 3 app: $ rails env: ruby1.9: No such file or directory $ script/rails env: ruby1.9: No such file or directory $ script/rails generate env: ruby1.9: No such file or directory $ ruby -v ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0] $ mate script/rails #!/usr/bin/env ruby1.9 --> #!/usr/bin/env ruby -- You received this message because you are subscribed