Displaying 20 results from an estimated 36 matches for "anejr".
2006 Apr 20
5
Rails, FCGI, Dreamhost
Is anybody getting acceptable performance with a Rails application on
Dreamhost? By this, I mean response times no greater than 3 seconds, and
no large numbers of FCGI processes that you have to kill manually.
If so, how?
I''ve ended up running a constant ping script (once every ten minutes),
and still have to kill some number of excess dispatch.fcgi processes
every day.
Along with
2006 May 17
3
What am I missing?
There''s got to be a simple answer to this...
def logout
reset_session
flash[:notice] = "Logged out"
redirect_to :action => ''index''
end
The flash never shows up, and doesn''t seem to be in the new session.
--Al Evans
--
Posted via http://www.ruby-forum.com/.
2006 Jul 03
3
ActionMailer -- anybody ever see this?
I''ve got a mailer that works -- about every other time. Authentication
fails the other half of the time. There doesn''t seem to be any
particular pattern to it -- work once, fail once, work three times, fail
twice, ....
For example, here''s one attempt from my development.log:
Sent mail:
Date: Sun, 2 Jul 2006 18:50:57 -0500
From: someone <someone@something.org>
2006 Jun 22
4
Can I peek at all "active sessions"?
My users need to login to run the app I''m building. I''d like to give
them an "Other users currently active:" piece of information. I could
track it myself in the database based on login/logout, but that doesn''t
really count for people just leaving the computer logged in and never
coming back. Does Rails have an API for me to monitor sessions and take
a
2006 May 18
3
capistrano and Dreamhost issue
Hi,
i''m striving to capistranize a foo app on DH.
Everything is hosted on DH to simplify a bit :
- svn repository (http access)
- the application
- the DB
I used the recipe of Jamis Buck modified by Geoffrey Grosenbach which
you can find here : http://nubyonrails.com/pages/shovel_dreamhost
I did the least modifications possible. As recommended.
1) When I launch the
2006 Jun 06
4
Checking if a directory is empty using File
Hi,
I have one minor issue. I''m trying to check whether a directory is empty
given some path to the directory.
My code does the following:
if(File.directory?(dirpath)) # dirpath = public/images/1
if(File.zero?(dirpath))
FileUtils.rm_rf(dirpath)
end
end
The problem is, while testing this, if I put a file in the directory and run
the above code, it still ends up deleting the
2006 May 19
6
Capistrano: update instead of checkout?
Hello,
Just started to use Capistrano for deployment and everything works beautifully
and as advertised. Thanks Jamis for this great piece of software.
However, in my case, the deploy task takes quite some time since my SVN
repository resides on a different continent than my app/db server and I''ve
frozen all the rails code in the vendor dir and checked in. All in all my app
sums up to
2006 Jun 22
12
invalidating a session on multiple login
How do I do the following: if a user is logged in, then opens another
browser tab and logs in again (either as himself or as someone else),
I want to invalidate the session in the first tab and throw up a
"logged in from another browser window" screen. RIght now, user1''s
session silently becomes a duplicate user2 session instead (from what
I understand, sessions are bound to
2006 Aug 04
8
Capistrano /usr/bin/env: ruby: no such file or directory
Hi,
I''m deploying to a prod linux server via Capistrano, but the last step,
running the reaper, won''t complete.
Ruby is stored in /usr/local/bin on the server, and I''m deploying from
winxp.
$ ssh mcalogin@lx07
Password:
mcalogin@LX07:~> env | grep "^PATH"
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/b
in:/opt/
2006 May 09
7
FCGI and the never ending saga of deploying on Dreamhost
I''m trying to setup an app on Dreamhost and running into no end of problems.
The app is running with edge rails and I''m currently getting the dreaded
''Rails application failed to start'' white screen when trying to access it.
I''ve gone through all the ''gotchas'' and troubleshooting docs at
Dreamhost and the rails wiki to no avail.
2006 Jul 16
14
Rails, FCGI, DreamHost, and endless frustrations
Hi all!
I''m trying to deploy an application out to a subdomain at dreamhost. I am
getting the dreaded "Rails application failed to start properly" error. The
logs for my app are empty. In the DreamHost FTP app, when I look in the
error.log file (I''m guessing this the Apache error log file) I see the
following for each of my attempts:
[Sun Jul 16 12:36:32 2006]
2006 Jul 14
14
[URGENT] Need help getting rails app back up desperately
I''m desperate. A few hours ago I was checking my server because we are
running a survey for a new client and everything looked good for that
app but I noticed another Rails app was quite large (twice as normal)
so I decided it was time for a restart. Big mistake. Upon restart the
application gave me a 500 error. Checking the logs I found a stack
level too deep error that after hours I
2006 Aug 11
0
Rake stats
Why is it that "rake stats" doesn''t count lines in views?
For example, I just ran
find app/views -name "*rhtml" -exec wc -l {} \;
in a recent Rails app directory, and got a total count that was about
80% as large as the Total LOC result reported by "rake stats". A fair
number of those lines were just as hard to write as anything in my
models or
2006 Jul 01
0
fcgi_watch update
I''ve updated fcgi_watch to version 0.3.1. There''s no real functional
difference, but I fixed a bug that caused it to report multiple copies
of the same FCGI process as "running" under certain conditions.
The updated version is here:
http://www.alevans.com/dl/fcgi_watch-0.3.1.tgz
For those just tuning in:
fcgi_watch is a supplement to (or replacement for)
2006 Jul 12
1
Adding Comments...
I have a hacked together version of Radiant with the capability of
allowing users to add comments. It''s somewhere between "demo" and
"pre-alpha" quality at the moment. I''ll make the code available (as an
svn diff against HEAD) in the next few days to anybody who''s interested.
Here''s a brain dump of the things I ran into, and my
2006 Jul 14
0
OpenID immediate mode
Maybe nobody else has tried this, but there''s a problem with immediate
mode in the current release of OpenID. If you use it, you''ll get the
first "complete" response correctly, as OpenID::SETUP_NEEDED, but you''ll
get OpenID::FAILURE when you user returns to your site after typing in
his password and whatever.
The reason is that OpenID''s
2006 Jul 15
0
RJS help?
I have an action that does a redirect to an external URL, passing a
"come back to here" parameter to that URL.
When it "comes back to here", I either process a "successful" return,
process a "failed" return, or redirect on a "need more information"
return.
In the last case, I would really like to put the "need more information"
URL
2006 Jul 17
1
RJS and PeriodicalUpdater -- example?
In a controller, I''m trying to do
def do_some_periodic_thing
render :update
page << ''var foo = new Ajax.PeriodicalUpdater("someDiv",
"/some/path", {asynchronous:true, frequency:1, evalScripts:true} );''
end
end
In the view, I have
<%= link_to_remote "Test Periodical", :url => { :action =>
2006 Jul 19
2
prototype question
Can anybody tell me where to submit a bug report/patch for prototype.js?
As far as I can tell, lines 760 et seq. should be changed from
if ((this.header(''Content-type'') ||
'''').match(/^text\/javascript/i))
this.evalResponse();
}
to
if ((this.header(''Content-type'') ||
2006 Jun 02
0
psitsNOT now available as a Rails Engine
psitsNOT ("Photoshop it''s NOT!") is an AJAX powered image editor for
Rails. Although it doesn''t pretend to be feature-rich, psitsNOT lets you
rotate and crop; adjust brightness, contrast, and color balance; then
reduce grain, enhance color contrast, sharpen, and set the final size of
an image. It does a great job at enhancing digital photos for display on
the web.