Displaying 20 results from an estimated 600 matches similar to: "one more try - ENV and FastCGI"
2006 Feb 16
4
newbie question regarding basic AJAX form verification
Hi,
I''m confused about how form verification with AJAX works. Let''s say I have a
''new.rhtml'' view that contains a form with two fields, and the form action is
''create''. Let''s assume that I also want to do some type of data validation on
one of the two fields via AJAX before I submit the form. But since I''ve
already
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 Oct 24
1
test env. differs from development env, tests breaking
I just got a new PC at work. My project files were copied from my old
drive. Just to be sure, though, I have erased them and pulled them back
down from source control.
My development database server is MySQL
My test database server is sqlite3
I am having a confusing issue: tests are failing and errors are
happening that weren''t happening before. Furthermore, they aren''t
2005 Jul 27
1
Installing SJava (I'm almost there, just a little more help please!....please!)
Hi. Day three and Iām still struggling with this. Any advice to overcome the
final hurdle will be enormously appreciated. I now have all the right Java
applications etc. in their right places and have managed to get rid of most
errors but still get this:
ā Making package SJava ā
Building JNI header files...
adding build stamp to DESCRIPTION
running src/Makefile.win
(cd .. ;
2006 Jul 25
3
+ camping 1.4.140 -- apache+fastcgi, lighttpd+fastcgi
Okay, I have tested mounting several of my apps under Lighttpd and Apache,
both running FastCGI. I''m going to explain the configuration, but first:
update.
gem install camping --source code.whytheluckstiff.net
== Mounting Root for Lighttpd+FastCGI ==
server.port = 3045
server.bind = "192.168.0.103"
server.modules = (
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