Displaying 20 results from an estimated 7000 matches similar to: "Rails app lags after inactivity"
2006 Jan 21
4
Ruby processes consuming 1,000 megs of swap space
Hi all. The subject pretty much says it.
I''m running on a VPS-style shared server at pipespring.com. I''ve got Typo
setup, and have been running it fine for about a month.
However, today I got an e-mail from my host saying they disabled Ruby (chmod
000) because it was using waaay too much swap space.
I haven''t changed anything with my server at all (Rails or otherwise)
2005 Dec 01
12
Difficult process of restarting SCGI, Lighttpd, Apache, sessions
I''ve managed to get Rails working using Apache->Lighttpd->SCGI. Restarting everything is really
difficult. This appears to be the process:
- stop apache
- stop lighttpd
- stop scgi
- make sure scgi still isn''t running (it sometimes does) - if it is, kill it
- delete all session files (they often cause permission errors)
- start scgi
- start apache
- start lighttpd
- cross
2005 Nov 06
11
Ideal Rails / Apache config?
Hi All,
Just about to set up RoR on our server and was wondering what the
ideal setup for RoR is these days? Apache 1? Apache 2? fCgi?
Any guidance would be helpful!
Thanks,
-Adam
2006 Jan 28
13
What''s the verb form of id?
Random question:
I''ve written a method for the String class that turns an arbitrary
line of text in to an identifier, e.g.:
"My, what a beautiful day!"
=> "my_what_a_beautiful_day"
"(anb*#NF(AMNV"
=> "anb_NF_AMNV"
We''ve got all these great names already like underscore, classify,
titleize and things like that. I''d
2006 Jan 06
8
How do I write a generator?
I''d like to take some advice and write a generator to change the
scaffold.css. How do I do that? I looked on the wiki and googled it
but have not found anything yet.
Any help would be much appreciated.
bruce
2006 Mar 06
8
RoR on a VPS
I''m looking for a virtual private server to run a RoR site accessing a
database on a different machine.
This is a small application - basically a form to add records, and a few
summary screens.
What are the minimal requirements for a vps?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 07
17
Easy way of dealing with nil properties in templates?
Is there an easy way to deal with nil properties in
templates? All I''m aware of are these methods, and
it''s quite tedious and surely violates DRY.
<%= @member.name unless @member.name.nil? %>
<%= @member.name.to_is %>
<%= "#{@member.name}" %>
csn
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the
2006 Feb 15
36
Rubuntu Live CD for Rails
Friends-
I am almost finished with a custom live cd called Rubuntu ;-) This
is an ubuntu live cd variant that comes preloaded with ruby and rails
developers in mind. I already have it working with all the basics but
I was wondering what extras people would like to see on this distro.
What editors with what configurations?
What other tools do people really like for rails development on a
2006 Jan 11
8
Enterprise Rails Apps
Is there a place I can get a list of "enterprise" Rails applications?
Apparently, even though I''ve looked at the wiki and cited the examples
there, there are some at my organization who still can''t find proof that
Rails is usable in an enterprise setting.
Would you fine folks be able to tell me about some large-scale projects
that could be classified as
2006 Jan 23
8
OT: Problem rotating logs with lighttpd
Hi everybody,
this is a little OT. We are using Lighttpd as a webserver for Rails.
Our problem is that when we rotate the logs everyday at the end of the
process, lighttpd stops writing the logs. To solve this we have to
restart the server manually each time.
We use a common Debian, lighttpd-1.4.7, Rails 1.0 and fcgi-2.4.0.
I have tracked the lighttpd bugs, and I haven''t found
2006 Jan 20
3
Process watchdogging anyone ?
Hi !
I have Lighttpd and SCGI clusters running my applications. I
self-host at RimuHosting, but I find that my processes die sometimes.
I''m not a Linux administrator, so I simply want some kind of
watchdogging process to ensure my stuff keeps on truckin''.
I found Watchdog::Process on CPAN, but it won''t install. There''s some
kind of error. Launchd would be
2006 Feb 15
6
Measuring hosting performance: shared <--> vps <--> dedicated
Every app we build has to be deployed, and the price has to be right.
* dedicated servers start at 99$/m (Dreamhost, ..), and
shared hosting go up to 47$/m (PlanetArgon) or 60$/m (TextDrive)
* Railsplayground: 2$/m
* TextDrive dedicated servers : 1000$/m
Is there an objective way/tool to measure, test and compare the
performance of the hosters?
Alain
2006 Jan 12
24
The Guilt List
I''m not a paid developer, but I still feel guilty. I thought it might
be entertaining to have a little "programmer confession." So let''s hear
an answer to this simple question:
What makes you guilty about your Rails development?
Mine is a bad one: I don''t write tests. I understand that TDD makes
sense, but I just don''t do it. I''ve
2006 Jan 28
20
Code security
I''ve just created a rails application for a friend''s business.
I''m going to place the application onto one of his computers so he can
access it from within his network.
What can i do to make sure he cannot read/edit the code? I can''t see
what i can do. Its on a windows xp machine and he has full admin rights.
He''s not an expert PC user so the solution
2006 Jan 14
12
Dedicated Host Recommendations?
I currently have a dedicated server at ev1servers, but
it''s getting rather antiquated (Redhat 9) and am
looking to upgrade. I''m thinking about serverbeach.com
- one of their CentOS servers. Anybody have any
recommendations for dedicated servers on which to run
Rails? Hopefully less than $200/month.
Thanks!
CSN
__________________________________________________
Do You Yahoo!?
2006 Feb 16
4
Help with "Updating Gem Source Index"
After hearing so much about RoR over the last few months, I finally
decided to give it a try. I decided to follow the "Rolling with Ruby on
Rails" article on ONLamp.com to get up and running.
Unfortunately, since that fateful decision, I have run into nothing but
obstacles.
First, I downloaded and installed Ruby. That was my last success event.
Then, I typed "gem install
2006 Jan 31
4
A dumb question on extracting a value from a hash
Hi,
I have the following code fragment;
@comm_type = Communication.find_by_sql(''select id from
communication_types where upper(description) = "EMAIL"'')
Which results in
>> @comm_type
=> [#<Communication:0x39a0f60 @attributes={"id"=>"4"}>]
But when I try to test an ActiveREcord against this it doesn''t work;
2006 Jan 04
11
Query Mixin by Duane Johnson
Hello
At the start of October, Duane Johnson announced the Query mixin plugin on
this list. The code was attached to the announcement email. Unfortunately,
I''ve not been able to locate the attached code. Goggle has not helped me
this time. Could somebody forward it to me?
Thanks in advance
Harvey
This e-mail has been scanned for all viruses by MessageLabs.
2006 Jan 10
5
problems overriding module with plugin
Hi I am trying to create a plug-in to fix the error in the rails core
produced by the multiple delete on a HABTM relationship. I have
confirmed that my plug-in is being included into the base during
runtime however the code does not seem to be overridding the base
class.
module ActiveRecord
module Associations
module ClassMethods
def has_and_belongs_to_many(association_id, options =
2006 Jan 16
42
Linux Suggestions
I''m fairly new to Ruby & Rails and I come from a stricly M$ background. I''m
trying to move into the world of open source, but I don''t have a good roadmap.
I''m starting to develop a Rails-based product and I want to have the option to
distribute it to non-hosted customers. So I''ve said all that to say this... I
want to learn how to setup linux and