Displaying 20 results from an estimated 5000 matches similar to: "Deploying rails..."
2006 Mar 28
12
Rails & PHP
Hi there - I wanted to know if anyone has used Rails & PHP on the same
production server and whether they''ve experienced any problems.
I''m looking to install rails on our production soon, however I would
like to know if there are any issues I need to be aware about.
Many thanks,
Jared.
2006 Mar 29
13
Rails on Mongrel
Hi,
After following advice from you good folks, I gave mongrel a try in a
cluster design based on the example on the Mongrel website - and it
worked right out of the box which is great - and it''s very fast :)
I have got a bit stuck though. I have two MS Word files in
/public/files/. I can pull back these files no problem but it isn''t
sending a mimetype.
I think I have two
2006 Mar 21
11
Stuck on ActiveRecord
Hi,
I''m having great fun developing with Rails but I''ve come to a problem
that I can''t quite figure out.
I have an Order object that "has_many" order_lines. This works perfectly
and I can see all the lines.
The OrderLine object has an order_id field as well as product_id and
amount.
Now ideally I would want to do :
order.orderline[0].product.name
for
2006 Mar 28
4
1.1 won''t install!
I get this result in Terminal (10.4.latest)
pb12-olivier:~ ambush$ gem install rails --include-dependencies
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
ERROR: While executing gem ... (Errno::EACCES)
Permission denied -
/usr/local/lib/ruby/gems/1.8/cache/activesupport-1.3.0.gem
2006 Jul 29
6
why is webrick running in development mode?
Hi,
I changed my environmnet.rb to say PRODUCTION mode, however when I start
up a server "ruby scripts/server"
a) it runs in development mode (via the logs) - any ideas why?
b) why does webbrick run - I thought by default now it was supposed to
be lightty
Tks
--
Posted via http://www.ruby-forum.com/.
2006 Mar 12
3
Apache, fastcgi, ruby-on-rails etc.
Hi all,
I've read a bit about fastcgi, and wondered if it might be an
interesting solution for e.g. running php in a user-switched environment
or running ruby-on-rails etc.
But I wonder why nobody (searched on Google) seems to use CentOS with
mod_fastcgi for Apache 2.x.
And I also wonder why people actually using Apache 2.x and ruby-on-rails
with CentOS did run a lighthttpd-fastcgi
2006 Apr 15
6
Good image API for RoR?
Hi, I need a relatively simple image api for the app I''m writing. I
need to copy photos, rename them, and re-size them to put them in a
standard format.
I tried using RMagick/Imagemagick, but the photos would be corrupted on
re-size, so I''m looking for some suggestions.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 03
12
scgi?? do i need it for ruby?
This might be obvious to everyone but it is something that i haven''t
been able to find an answer to. Do I need to have either
scgi/fastcgi/cgi running on either lighttpd/apache for ruby scripts to
work? If yes, why? I have installed the scgi server and i can get the
service to run, i have also installed the following mod_fastcgi/2.4.2
mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_scgi,
2005 Dec 22
2
Lightty idle-timeout - does it work?
Rails 1.0 on RedHat with MySQL
It seems that my app stops functioning overnight [actually I am
assuming that it is after a period of inactivity]. Googling around
for solutions, it seems that it might be an issue with timeouts on
the MySQL session. A suggestion I found was to a) increase timeout on
MySQL [don''t want to do that]; b) add idle-timeout parameter to
Lightty. So I
2006 Mar 29
42
Production environment for Rails on Win32, anyone interested for a binary release?
Hi all, as part of adopting Rails in my company I had to go through
the hassle of setting up a Rails production environment on Win32
system since we mostly use MS SQL as our database back end and also
because we mostly dealing with customers who become green-blue-purple
as soon as you mention Unix/Linux and run for the door.
I also need to mention that most of our web applications are internal
and
2006 Aug 16
18
mongrel lighttpd and ssl
I am wanting to one run instance of lighttpd, many many instances of
mongrel. I also need ssl but only for one of my sites. I understand that
Mongrel does not play with SSL so I am forced to use Lighttpd. I think that
lighttpd only handles ssl or non-ssl on any given instance. Is there a way
for me to accomplish my goal of one lighttpd with multiple mongrels and the
occasional ssl connection?
--
2006 Oct 10
7
Problems with RJS w/ Lighttpd & Ubuntu
I have my code working on my local machine no problem, but when I upload
to the server the RJS effects I have aren''t working. The server is
running Ubuntu Dapper w/ lighttpd while on my local machine I''m using
webrick.
For kicks I shut down lightty and booted my app on the server with
webrick and it works fine. So it''s definitely a lightty issue.
Anyone else seen
2006 Dec 14
3
reaper spawner
Hi,
Anyone know where i can find out more info on Reaper/Spawner.
Currently, every time i add a new account on my production machine, i
have to restart the whole server. After about 150 accounts, this puts a
real strain on the server (it takes 3 full minutes before i can access
any site on the server).
I think reaper/spawner is my answer, but i am havving trouble figuring
out how to use it.
2006 Jun 25
2
Working out sales tax...
Hi,
Having googled extensively about storing money in Rails, it seems to be
accepted that the best way is to store the prices etc in the smallest
part of the currency so that you can use an integer i.e ?20 would be
stored as 2000 pence.
This is fine and I''ve made a nice pretty wrapper that outputs the price
in the standard form for invoicing and what not - but here I''ve
2006 Apr 12
1
URL Paths
Hi,
I''m looking to rewrite an existing app in Ruby but it makes extensive
use of URL paths. For example a site would redirect to :
/Portal/foo/
and from this I could tell that ''foo'' was the site that did the
redirect. Of course when I try this with Ruby I get "method not found"
which is hardly surprising.
I''ve had a quick look round google but
2006 Apr 17
1
SOAP and exceptions
Hi,
I''ve been doing more searching, and I''m kinda stuck on how to send back
error messages to a SOAP / XML-RPC client if say for example the
username and password they supplied were incorrect.
Can anyone point me in the right direction?
Cheers,
Pete
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
Form Validation
Hi,
I''ve got an interesting one here :)
I have a form with three fields :
serial_number
initial
surname
now, if serial_number is entered, it must be between 1 and 64000. If
it''s filled in, the other two fields must be blank. If serial_number is
left blank then the other two boxes must be filled.
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 23
3
Returning CSV data to the client
Hi,
One of my apps has to export data for the backend system to process it.
What''s the best way to create a CSV file in Rails and then return it as
a file to the client? i.e when they go to the link /csv/get_data it
would return a csv file.
I''ve been messing with the CSV library and I can get it to write out to
a file, but not sure how to best use this in a web app.
Hope
2006 Jun 12
15
Mongrel Now Recommended Setup?
I see that the RubyOnRails.com site has migrated to Mongrel with Apache as a
front-end proxy.
Is that now the/a recommended setup for Rails apps? We''re still using FCGI
but I''m always interested to learn more about other folk''s successful
deployment choices.
Across all of our sites we''re pumping out about 300k pages per day so
anything that saves memory or has
2006 Feb 15
4
Lightty 1.4.10 socket file problem
When I run lighttpd 1.4.10 [on Mac OS X] the socket file is called
''fcgi.socket-'', versus ''fcgi.socket-0'' that I get under 1.4.8.
Further, when the FCGI daemon quits, the file does not get deleted,
and I cannot restart my Rails app until I manually remove it.
Can anyone confirm before I raise a bug at lighttpd.net?