similar to: Setting env vars from within a Rails app?

Displaying 20 results from an estimated 10000 matches similar to: "Setting env vars from within a Rails app?"

2006 Mar 12
3
Setting environment variable for 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 Nov 30
0
Are shared libraries being loaded in some other context?
I have come across an oddity and wanted to ask if anyone else has looked into this. 1) I have a locally installed gem: RMagick. 2) It loads and works just fine from script/console when I have LD_LIBRARY_PATH and GEM_PATH set in the shell. However, in the live environment it just does not want to play nicely. I have both LD_LIBRARY_PATH and GEM_PATH set in environment.rb and echo those values
2006 May 19
9
[NEW SITE] psitsNOT
psitsNOT ("Photoshop it''s NOT") is an over-the-web image editing application made with Rails, RMagick, and AJAX. It provides everything you need to make a raw digital image look good on the web. http://psitsnot.alevans.com You''ll need an OpenID URL to log in. Feedback is welcomed! --Al Evans -- Posted via http://www.ruby-forum.com/.
2009 Mar 25
0
RMagick LoadError
I installed RMagick 2.9.1 and tried to test RMagick code below. irb -rubygems -r RMagick But I got an error like below. /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so: libMagickCore.so.2: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so (LoadError) from
2007 Dec 13
0
Errors building RMagick on Linux
Here are the sequence of commands that I''ve done running CentOS 4.3. When I do the very last command ''make'', I get the errors below. Any ideas? thanks! chirag cd /usr/local/src wget http://image_magick.veidrodis.com/image_magick/ImageMagick.tar.gz tar xvzf ImageMagick.tar.gz cd ImageMagick-X.Y.Z ./configure --disable-static --with-modules --without-perl \
2009 Apr 19
15
Not quite a rails question but can anyone advise?
Hey guys! I''m having a little trouble trying to integrate RMagick with my rails app. In the online terminal (on my host''s server) if I write: export "LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" before opening the rails console then I can require "RMagick" no problem. Without adding usr/local/lib to the LD_LIBRARY_PATH I get the error message described
2007 Jan 04
1
rmagick working in console but not in my app
hey all, When I do this in script/console I get: >> require ''RMagick'' => true >> include Magick => Object >> f = Image.new(100,100) { self.background_color = "red" } => 100x100 DirectClass 16-bit >> f.crop_resized(50,50) => 50x50 DirectClass 16-bit But in my application I keep getting the same error as if rmagick was not
2009 Oct 19
3
apache env vars - best practices
I've been setting custom env vars for Apache 1 of 2 ways; 1 - Changing the passwd file so Apache has a shell and loading a custom .bashrc file. 2 - Using the SetEnv directive in my httpd.conf file. I'm crazy about neither one as they both have limitations; 1 - I don't like giving Apache its own shell. 2 - The SetEnv directive only takes 2 args so if I have a var with multiple
2008 Jul 03
1
halp! howto config env.rb to look for rmagick gem?
hi, my rails application is having trouble locating rmagick to use with acts as attachment. my host put the gem in /home/myaccount/ruby/gems/gems/rmagick. how do i tell my rails app rmagick is located there? i tried require "/home/myaccount/ruby/gems/gems/rmagick", but that was crashing my rails app. and ENV[''GEM_PATH''] =
2006 Apr 24
7
ImageMagick/Rmagick replacement?
Hi, everyone! I have been recently hit by ImageMagick/Rmagick memory leak issues. I know I can lesson the problem by manually starting up GC each time I use Rmagick library but ImageMagick seems to use way too much memory nevertheless. (on shared hosting setup anyway) Is there a decent replacement for ImageMagick library? I used to think ImageMagick was quite efficient because its
2006 May 17
2
uninitialized constant Magick Please help!
Dear Rail experts, thank you for such a resourceful list. I am working on an application using Rails 1.1 [REVISION=4240] whereas my server has Rails 1.0 installed. I recently decided to give file_column a try and everything works fine except I am getting the following error: "uninitialized constant Magick" I have tried setting environment variables,
2006 Jul 26
0
LoadError: no such file to load
Suddenly I noticed that I can''t require installed gems from irb or ./script/console. Any ideas? irb(main):001:0> require ''RMagick'' LoadError: no such file to load -- RMagick from (irb):1:in `require'' from (irb):1 irb(main):002:0> require ''mysql'' LoadError: no such file to load -- mysql from (irb):2:in
2006 Jul 11
0
"uninitialized constant Enum" in RoR app under Apache
Hi, all. I am trying to manage to run my application under Apache+Mongrel but i am stucked with very difficult (for me) problem. The problem is: RMagick stuff works perfectly under WebRick. My environment is Ubuntu 5.10, ImageMagick 6.2.8, latest version of mongrel, rails, rmagick... Apache 2.2 But if I start the same application under Mongrel I get following error NameError (uninitialized
2006 Apr 11
6
Google Base... in Rails?
Ok, so this is kinda out of the blue... but I''ve been looking at Google Base and thinking that it''s got some really good ideas in it. Especially the way you can create your own "type" of item with its own custom attributes, like date range, location, number, text, etc. Kind of like defining a database with a GUI, but not exactly. It seems really interesting to me, from
2006 Mar 22
5
FTP hangs Rails!
Hi! I''m running a Rails app on Apache/FCGI, with a single handler process on the server. At one point my application needs to FTP a bunch of files to a remote server. When it starts doing this, the server apparently freezes and doesn''t allow anyone else to do anything. Plus, after about twenty seconds, my nice status page vanishes from the browser, even though the
2006 Aug 05
0
RMagick and FastCGI on Windows
I''m having trouble getting RMagick to work on my Apache/FastCGI setup. If I top Apache and start WEBrick on the exact same app/dirs, it works fine. I installed RMagick following the instructions here: http://rmagick.rubyforge.org/install-faq.html#win That gives me: C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.9.2-mswin32\lib
2006 Aug 13
0
ssl breaks rails app
I''m a newbie both with rails and configuring a server so I appreciate any help available. I developed my rails app and deployed it successfully on apache using cgi. Next I successfully configured mod_ssl for apache. I point my browser to https://myserver and VIOLA , I see the index page in ../myapp/public/index.html . But when I try to get to one of the controllers, the routing seems
2006 Mar 27
0
RMagick + Cygwin = IRB Crash !!
Hi, I am reinstalling rmagick on my pc and I am running into this issue: in irb > require ''RMagick''. Boom irb crashes no messages, no stack. I have installed GraphicMagick 1.1.7 and can run it from the command line: ie > inspect.exe xx.gif I have installed rmagick.1.10.1 and it shows up in my gemlist and the installed looks successfull. Running the rmagic
2020 Jun 02
0
[PATCH nbdkit 2/5] vddk: Move reexec code to a new file.
Pure refactoring. Just decouples the complicated reexec code from the rest. --- plugins/vddk/Makefile.am | 2 + plugins/vddk/vddk.h | 42 +++++++++ plugins/vddk/reexec.c | 196 +++++++++++++++++++++++++++++++++++++++ plugins/vddk/vddk.c | 151 ++---------------------------- 4 files changed, 246 insertions(+), 145 deletions(-) diff --git a/plugins/vddk/Makefile.am
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