similar to: Detecting the current environement

Displaying 20 results from an estimated 7000 matches similar to: "Detecting the current environement"

2006 Jul 29
2
PHP in Rails app running on WEBRick
Hi all, I''ve got a Rails app, and I''ve been asked to include some PHP pages in the site. They don''t need to interact with the Rails app itself (I''d treat them much like GIF files), but I''d still like to be able to access them at development time using WEBRick. What do I need to add to ./script/server to support PHP pages? Cheers, Douglas
2017 Jun 10
1
Question about R developpment
I would describe MRO as a distribution of R, in the same way that Fedora, Debian, SUSE etc are distributions of Linux. It is not fundamentally different from the version of R that you can download from CRAN but the binary builds offer some specific features: 1) The binary build is linked to the Intel Math Kernel Library (MKL) which may increase the speed of some matrix operations 2) Packages are
2009 Nov 17
8
rspec-rails gem double quoting (My)SQL?
Hi all, This seems like a plugin conflict (I haven''t yet had success replicating this in a new project), but short version is: when I have "rspec-rails" in my environment.rb plugin config, table names are double quoted in mysql queries generated by my standard finders. rspec-rails commented out: SELECT * FROM `users` WHERE (`users`.`id` = ''159564615'')
2005 Dec 28
1
Ruby on rail newbie
Hi everybody, sorry if the message does not have this place there. I''m a one-year experienced php developper. I use this language for all my web applications. I prefer php to Java/J2ee because, of its simple features, its powerness and the fact that it let the user choose the way he wants to program(This is particularly benefical when i''m prototyping) For me the
2009 Feb 24
2
About virtualization, xen and kvm.
Hello, I have understand that : ---------------------------- guest ---------------------------- driver_device0_guest ---------------------------- hypervisor ---------------------------- driver_device0_hypervisor ---------------------------- device0 ---------------------------- in order to access to a device, a guest use driver_device0_guest The
2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all- I am building an application that includes a login screen. During development I found that user passwords are logged by Rails in plain text -- this will not be acceptable to my users. Is there a way to obscure/encrypt incoming password parameters or not write them to the log files at all? One thought was to use Javascript, but I was not sure how secure that would be. Thanks, Josh
2006 Apr 08
5
Moving my site into production mode - general questions
Hi! I''ve just finished my ror site and i''d like to move it into production mode. Now it runs on linux/apache 1.3/cgi. 1. Can i use fcgi in development mode? I''ve read somewhere that because of caching it causes memory leaks and fcgi shouldn''t generally be used in development. Does plain cgi also causes memory leaks in development mode? 2. Does rails
2006 Jul 31
4
switching database dynamically based on incoming request
So I have this idea to reduce code replication in our rails setup. Currently we have our rails app serving two distinct sites, soon to be three. At the moment we check out a separate set of code for each site, and configure it by adjusting the database setting and some config files that pull in separate style sheets. To remove this replication I''d like to have a single codebase, but
2007 Dec 04
1
ssl_required being ignored?
Hi everyone! I want to require SSL for a single action in one of my controllers (for logging in, and sending a password). Working off of the skateboard book, I have added: include SslRequirement to my application controller, and then in the login controller, I have added the line: ssl_required :login This does not give me any errors, but it does not redirect me to https either. It simply acts
2006 Aug 31
2
How to set RAILS_ENV for different directories (fcgid)
Hello! I want to use the same application in two environments (production and development) on the same server (apache2 with fcgid) in different (aliased) directories. Is there a way to specify RAILS_ENV inside my <Directory> directives? I have the line DefaultInitEnv RAILS_ENV production in my httpd.conf but I want one of the directories to be development. Setting the ENV var directly in
2006 May 25
4
downloads dispatch.fcgi for every request!!
Hi All, has anyone ever seen it when they vist the URL in the applicaion that it just tries to download the FCGI dispatch file? Im running FC3, Lighttpd1.4.11, Rails 1.1.2 and FastCGI. i run IRB and get... irb(main):001:0> require ''fcgi.so'' => true irb(main):001:0> require ''fcgi'' => true On the default rails install page ''riding on
2017 Jun 10
4
Question about R developpment
Hi, I had a question that might not seem obvious to me. I was wondering why there was no patnership between microsoft the R core team and eventually other developpers to improve R in one unified version instead of having different teams developping their own version of R. Is it because they don't want to team up? Is it because you don't want? Any particular reasons? Different
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the views with tons of <% %> ? Like this <%= start_form_tag() %> <%= text_field_tag(''category[title]'', category.title, {:size => 20, :maxlength => 128}) %> <% if not category.parent_id.nil? %> <%= select("category", "parent_id", Category.find(:all,
2006 Mar 21
3
Do module source code changes require reboot of WEBrick?
Assume that I refactor some code into a module and "require it into" my controller. Do I then need to restart my WEBrick server each time that I change the module? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Mar 23
8
The fastcgi crash after few hours
I have this configuration on my server - Windows 2000 server - Apache 2.0.55 - MySQL 5.x - Rails 1.0 For the moment I have a rails app that run on Apache with fastcgi. After some hours i use the application the fastcgi go down and so the web app is so slow (with cgi). The error in RAILS_ROOT/log/fastcgi.crash.log is: [23/Mar/2006:09:11:23 :: 5668] Ignoring unsupported signal USR1.
2006 May 17
12
Help with Apache config
I have been attempting for days to configure Apache for Rails. I have read forums, followed How-To''s all in vain. I am hoping someone can help me out. I am getting the Rails Welcome screen, but when trying to go to any other url, I get the 500.html message. Take a look for yourself at http://66.139.78.237 and click on "about your application''s environment".
2006 Jan 14
14
Javascript/AJAX Debugging
Hello ! I''m trying to implement something similar to the "multiple updates" section of the Web2.0 chapter of the Agile book. I implemented my version, and nothing is happening. No javascript errors, my logs look fine, page is rendered fine... just no Effect.Highlight. Here is the code: views/causes/cause_home/index.rhtml =============== <%= form_remote_tag(:complete =>
2006 Mar 30
9
script/console not working after Rails 1.1 upgrade
Whenever I do script/console I get an error message: Loading development enviroment. c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ''parse_opts'' : undefined method ''upcase'' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/1.8/irb/init.rb: in ''setup'' from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ''start'' from c:/ruby/bin/irb:13
2006 May 12
8
switching from development to production?
I think I''m missing a step here, but they don''t seem to cover this in the AWDWR book... does anybody know the various steps required to switch from development to production mode in Rails? I''ve scoured the application and changed everything that stands out, but the damn thing is still running off the development database and won''t connect to the production
2006 Feb 14
7
onFailure fails?
Hi all, I have this code: new Ajax.Request(''non_existant.file'', { onSuccess:function(){alert("yay");}, onFailure:function(){alert("boo");} }); Why does the onFailure alert never get called? It works fine if I use a real file (onSuccess gets called). Thanks, Douglas