Displaying 20 results from an estimated 5000 matches similar to: "Capistrano fails to restart Memcached service"
2006 Feb 08
4
Fixture question...
Ok, I''m pretty sure I''ve seen this done before. I have a fixture that
isn''t named the same as the table I want to insert the stuff into.
Whats the right way to go about this?!
Google has failed me! :(
-Nick
2006 May 21
2
Reaper and symbolic links
Hello,
I''m trying to restart my application fastcgi processes using reaper.
But I get the following error:
$sudo -u www ./script/process/reaper
Couldn''t find any process matching:
/var/www/example/200605200000/public/dispatch.fcgi
The problem is that it should not look for 20060520000 but for current
which is a symbolic link pointing to 200605200000.
I did the
2005 Dec 29
6
How do I open and read/write to a file?
I need to process some text files quickly. I''ve not been able to find the
answer in the archive. The Ruby Standard Library site times out. Can
someone tell me where to find info on how to:
1. Get a list of filenames in a directory.
2. How to open a file.
3. How to read it a line at a time.
--
Thanks in advance for the help,
-Larry
"Work, work, work...there is no satisfactory
2006 Jan 16
4
Question about self and private
Hi!
There''s something I don''t understand yet about static/private methods. I
hope someone can explain...
E.g.:
class SayHello
def hello(who)
puts "Hello, " + who + "!"
end
def self.say(words)
puts words
end
end
hello = SayHello.new
hello.hello "World" : Hello World!
hello.say "hi" : Error
SayHello.say
2006 Feb 08
10
Sharing sessions between subdomains?
Hello,
I know how to share sessions between subdomains in PHP. Can anyone please guide me as to how I can share sessions using Ruby? Where can I set the value of domain for which the cookie is set?
I would like for a user to login on the home page and then go to blog.home.com and not have to login again.
Any guidance/pointers are appreciated.
Thanks''
2006 Mar 27
5
Accessing Session Object from a model
i realise that this goes against the basic idea of the MVC architecture,
but i''ve found myself in a situation where i need to get information
about the current user in a model & i''m not sure how to do it.
Basically, we have a product where each customer has their own profile
with data stored in a separate database. There are some tables in a
common
2006 Oct 01
7
Log rotation
Hi mongrel-herders,
I''m just wondering what fellow railsers use to rotate their logs in an
orderly fashion? I''d like to do something lightweight, i.e. (1) rename the
logfile (2, optional) create a new empty logfile and (3) send a signal to
each mongrel in the cluster and have them understand it''s time to reopen
their log file handles. This is what I do with apache and
2005 Oct 14
10
Active Record: Prepared Statements?
Hello all,
my first project is on it''s way, and I am loving it!
But, and that''s a big BUT:
Active Record does not use prepared statements! How is that? Everybody is
bragging about performance and the most obvious tuning measure is missing.
Ok, I don''t know, if MySQL can even do them as I am using Postgres, but
still.
I started looking at the code and it is not
2006 Feb 19
3
accounts and subdomains
With reference to a previous
post:http://www.ruby-forum.com/topic/55201#new
I would like my app to function as follows:
A new user signs up for my application, his username is "andy". When
andy now logs in to the application the url is redirected to :
http://andy.myapplication.com
Questions:
Is this possible to develop on a windows box with webrick?
Do I need anything special like
2006 Feb 08
1
testing with loginengine and userengine
Hi all,
My unit tests and functional tests are failing because my tests aren''t
authenticated. I''m using using user engine and login engine.
How can I fake authentication to make my tests work properly.
Thanks,
Jason Edgecombe
2006 Aug 22
1
Why the caches_page can not work?
Hi,I want the page to be cached and be accessed by all users.And in my
controller:
class MyController < ApplicationController
caches_page :show
def show
render :layout => false
end
end
When I use link_to_remote to use My/show to update some div, i can not
see the template has been cached. However,If I use
<%= render_component :controller => ''My'',
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
2007 Jun 19
2
Session Problem with Ajax Call
Hai,,
I am totally new to Ajax. I am trying to use ajax in my project. Its
working fine, I am getting problem while session time expires. If
session expires means i am redirecting to login page.Onclick i am
calling on ajax function. It will goto controller and it will check the
session if session expires then it has to goto login page.
On ajax call i am updating the div. If session
2007 Feb 05
3
Deploying to production with backgroundrb (capistrano)
I have noticed that occasionally (about 50% of the time) when i
deploy (using capistrano) my app to a production server, i have to
ssh into the box and manually
stop and start backgroundrb to get it to load my workers.
this is my basic setup
i have 2 workers:
lib/workers/mp3_worker.rb => takes a hash of params to downsample an
mp3
lib/workers/flv_worker.rb => takes a has of
2006 Sep 25
8
mongrel.pid disappearing
Hi to everybody,
This my first post on the list.
I''m a newby of mongrel & rails, I''ve deployed my first project and
everything seems to work fine, the only problem I have is the following:
After about 1 or 2 days of the mongrel_rails daemon running the
mongrel.pid in the log directory disappears, the mongrel process is
still there running
but doesn''t respond
2015 Mar 18
1
multiple memcached buckets in CentOS 7
Hi Alberto,
With systemd it will be as easy as creating additional unit files ( one for
> each memcached instance) with its corresponding config file. That should
> allow to stop / start / restart each memcache instance individually while
> also being systemd compliant.
Thanks for the info and for the examples. It really does make sense the way
you explain it. Thanks for letting me
2015 Mar 18
2
multiple memcached buckets in CentOS 7
Hey guys,
OK so I'm pretty familiar with how to edit an init script for memcached so
that I can get multiple memcached 'buckets' when starting up the service.
The init script would ususally have multiple lines such as these under the
start function:
# cache_block
/usr/local/bin/memcached -d -m 128 -l `hostname -i` -p 11318 -u
daemon -c 8172 -v 2>> /tmp/memcached.log
2007 Mar 12
7
Capistrano Hanging on Deployment
Hello ~
I am using the Capistrano recipe outlined in this post to restart my
backgroundrb server:
http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html
My Version:
~~~~~~~~~~~~
task :before_restart, :roles => :app do
restart_backgroundrb
end
task :start_backgroundrb, :roles => :app do
sudo "nohup
2012 Feb 09
2
python26-memcached on centOS 5.5
Hi,
Is anyone here running memcached + python2.6 + django setup on a CentOS 5.5?? Am trying to set one up here and have trouble with the python26-memcached installation.
So far i have installed (via yum):
1.python26
2. python26-memcached
3. libevent
4. memcached-devel
Now when i try to run `import memcache` from the python2.6 shell i get an ImportError: No module
2012 Nov 09
2
Memcached - replication?
Hi all.
I am thinking about installing memcached with replication, I've found
http://sourceforge.net/projects/repcached/files/repcached/2.2.1-1.2.8/ but
it is for 1.2.8, and for Centos 6.3 memcached is in version 1.4.4. I do not
want to use client side "replication" (writing to two memcached nodes at
the same time) and haven't found other solution.
Are there any good, protocol