Displaying 20 results from an estimated 10000 matches similar to: "Rails log file permissions"
2007 Nov 21
3
Mongrel Timeout?
Hi,
I am using a railsapp to call an external app and print some barcode-labels.
My problem is, after a while there seems to be a timeout. Then I need to
stop the Mongrel-Server and restart it.
Below you can see the error message, when i stop the server.
Has somebody seen this before?
Greetings,
Oli
C:\etikett>mongrel_rails start -d -e production
** WARNING: Win32 does not support daemon
2006 Nov 13
9
Setting up Mongrel and Apache , some direction needed
I have a site that is PHP on Apache / RedHat , but will send requests to a
subdomain (running Rails) for database operations.
I believe the set up should be to have ROR using Mongrel, and an Apache
virtual host passing requests from apache to mongrel.
Does this sound correct ?
I believe the Virtual Host is set up in Apache.
One of my problems is I can''t find the httpd.conf file for
2006 Jul 21
1
Lighttpd for rails app subdomain apache for the rest
I want to host a rails app at mydomain.com/railsapp. For technical
reasons I have to leave mydomain.com on apache. This means that I need
to tell apache to proxy only requests for mydomain.com/railsapp to
lighttpd. I have deployed in a situation like this before around a year
and a half ago but it was a real pain. Lighttpd and rails have matured
a lot in the year and a half since I did
2005 Mar 08
3
Making a module method available in view
I have a Rails application called RailsApp. In my RailsApp/lib
directory, I have a file called localization.rb that defines a module
called RailsApp with a Localization class that implements a method l.
(RForum devs and fans will recognize this as the YAML-based
localization feature in that package.)
I want to be able to call this method from my controllers and views.
I have added a
2006 Sep 22
1
how about the global data when multiple backgroundrbs ?
Ezra,
Suppose a chatroom application, a RailsApp + 2 backgroundrbs: MiddleMan1&
MiddleMan2, running in 2 machines.
When Chater1 login, RailsApp call MiddleMan1 to get something about
Chater1 from db to memory, like his contacts or other personal settings.
When Chater2 login, RailsApp call MiddleMan2 do the same thing.
But who is reponsible for the Global Data? like a Online Chaters
2006 Oct 02
3
Mongrel cluster FreeBSD rc.d script
Hello all
After installing Mongrel, Mongrel Cluster and all it''s dependencies via gems
under FreeBSD. Next I have configured all config/mongrel_cluster.yml for each
Rails app, then:
% mkdir /usr/local/etc/mongrel_cluster
and likend each railsapp.yml to it''s refering app/config/mongrel_cluster.yml
My question is, after preparing all base configs now I need to add some rc.d
2006 Nov 30
5
Sharing Mongrel Log Files on SAN Storage
Hi,
My department has a SAN and I''m wondering if it is safe to have all of
my mongrel''s share log files stored on the SAN.
More specifically, we have 4 machines, each running a couple of mongrel
processes. Right now each machine has its own set of log files for
mongrel. However, I am thinking that it might be better to put the log
files on the SAN and let all the mongrels
2006 May 20
3
integrate with php-script
I have built a webshop in rails, now it''s time for invoice handling
through a third party. The communication will be done by xml-rpc. The
built in ruby xml-rpc doesnt seem to be compatible with the third party
so I have to use a special php-script (provided by the third party) that
will handle the interaction with them. Where on the server should/can I
put the script? I would prefer
2006 Feb 06
4
fcgi to run cgi scripts
Dear experts,
I have rail site that is running lighttpd and fcgi. I want the default
domain to serve the rails application, and I also want to have a
virtualhost (bugs.mysite) to resolve to a bugzilla instance.
Bugzilla is basically Perl application called through CGI.
I tried to find pointers on how to set fcgi to run both rails dispatcher
and other cgi scripts in a different virtualhost, and
2006 May 10
7
Problems starting mongrel running a rails app as a service
Hi there
I have a rails app that I want to run on a Win 2k server running Mongrel.
I''ve downloaded the latest version and the win32-service gem and can run it
with the mongrel_rails start -d command
When I try to start the same app installed as a service I get the following
error:
"There was a problem starting the service:
The service did not respond to the start or control
2013 Apr 13
3
Cannot reach http://localhost:3000 after starting Ruby on Rails server
I cannot reach http://localhost:3000 after starting Ruby on Rails
server when running Windows 8. After running rails server in the
directory that I want the server to start, the following prompt shows
up:
C:\Users\Brian\railsapp>rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown
2011 Aug 02
2
ror +auth_token + c#
HI,
i have to change a desktop app written in c# to post and get some data
to/from a rails app. the railsapp uses devise.
what im doing right now is:
1) pull up sign_in page
2) parse 1) for auth_token
3) post username+ pwd & auth_token
3.1) if 3 ok > goto 4)
4) post json data
that works all good, except that i do not provide auth_token in step4 , but
a) rails is still accepting my data.
2011 Aug 02
2
ror +auth_token + c#
HI,
i have to change a desktop app written in c# to post and get some data
to/from a rails app. the railsapp uses devise.
what im doing right now is:
1) pull up sign_in page
2) parse 1) for auth_token
3) post username+ pwd & auth_token
3.1) if 3 ok > goto 4)
4) post json data
that works all good, except that i do not provide auth_token in step4 , but
a) rails is still accepting my data.
2006 Feb 02
4
How switching global layout (application.rthml <or> custom.rhtml)
Dears,
My railsapp run using ''/layout/application.rhtml'' and under some
conditions ( Authenticated user, url parameter) I like to switch
globally to another layout, let''s say custom.rhtml
Like :
class AppController < ApplicationController
before_filter :context_layout
def index
end
end
# application.rb
def context_layout
if <context_condition>
2006 Jun 06
9
How to protect images from public?
Hi,
I''m trying to figure out the best way to protect images uploaded by
users who may wish to keep them private.
For example, if they are uploaded in the default file_column location
(/public/blah/blah/1/) then someone can simply type the URL
http://www.blah.com/blah/blah/1 and get the image.
I can store the images in a non-public directory in the rails app (ie:
/railsapp/images/X/)
2007 May 17
2
Running SSL Rails app on apache server already in use
SSL and Rails is proving to be somewhat confusing and difficult to get going
for me.
I already have an HTTPS apache instance running off my domain -- legacy
secure web app. (lives at https://www.mydomain.com say)
Now I want to develop a new app on the same secured domain with rails (out
of a subdir, symlinked or something at https://www.mydomain.com/railsapp )
But how can this work?
To get that
2006 Apr 26
2
application failed to start for subdomain
I recently setup a subdomain to run my app as a staging site before pushing
changes to the main site. So i setup a subdomain in cpanel, symlinked that
the directory to point to a staging directory where i check''d out my rails
app.
However, when i go to staging.railsapp.com, it times out and says
application failed to start properly.
I''m not sure what is causing this, but
2007 Nov 08
0
error on migration
Hi all,
I''m just getting started with rspec. I''m using trunk rspec with edge
rails. I get an error on migration though, here it is:
rake db:migrate RAILS_ENV="test" --trace
(in /home/pat/railsapp)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `failure_message'' for class
2006 Jul 26
5
Mongrel + mod_proxy URL issues
We have a Centos server with a number of virtual hosts, and my rails app
runs under one of those virtual hosts using mongrel_rails. The app lives
in /home/mydomain/railsapp where /home/mydomain/railsapp/public is the
rails root.
It runs under mongrel on port 8008, so to get to it users invoke the url
http://www.mydomain.com:8008/ - all is fine to this point.
Now I have some users whose
2009 Aug 31
1
Paperclip gives an strange error message
I installed my railsapp on my server and now i get a strange error when
i tried to upload a photo.
On my macbook it works well but on the server i got next error when i
create a new post
Photo /tmp/stream.22042.1 is not recognized by the ''identify'' command.
Photo /tmp/stream.22042.1 is not recognized by the ''identify'' command.
The message came as an error