similar to: Running my app in "production" under webrick

Displaying 20 results from an estimated 20000 matches similar to: "Running my app in "production" under webrick"

2006 Mar 30
11
Capistrano/SVN: Deploying different database.yml for live?
Greetings, Today I''ve been working out how to begin using Capistrano and so far I''m impressed. Even in my situation, learning Rails and deploying to a single server, it''s incredibly helpful. I do have one small question though: In using Subversion I''ve used the "ignore" feature to ignore my local database.yml file, because my local database and
2012 Dec 05
3
Fwd: Issue starting unicorn with non-ActiveRecord Rails app
Hi, I''m trying to use unicorn in a test deployment of a Rails app that uses Mongoid, so Activerecord isn''t included in the app. When I start unicorn through Capistrano though, the stderr log fills up endlessly with identical ActiveRecord-related errors: I, [2012-12-05T04:19:25.375952 #5096] INFO -- : Refreshing Gem list I, [2012-12-05T04:19:32.941249 #5096] INFO -- :
2006 May 04
1
Switching to production mode
Hello, I want to start my rails application in production mode. But for some reason in spite of uncommenting this line in ''config/environment.rb'' ENV[''RAILS_ENV''] ||= ''production'' when I run ''ruby script\console'' it says loading development mode. Also, the webrick sends log messages to development.log file instead of
2006 Jul 29
2
PHP in Rails app running on WEBRick
Hi all, I''ve got a Rails app, and I''ve been asked to include some PHP pages in the site. They don''t need to interact with the Rails app itself (I''d treat them much like GIF files), but I''d still like to be able to access them at development time using WEBRick. What do I need to add to ./script/server to support PHP pages? Cheers, Douglas
2006 May 25
2
Capistrano only runs migration against production env?
All, Just read in the Capistrano manual about the Capistrano "migrate" task. There it says that: "By default, all this task does is change to the directory of your current release (as indicated by the current symlink), and run rake RAILS_ENV=production migrate. You can specify that it should run against the latest release (regardless of what the current release is) by setting
2006 Jul 19
2
best practice deployment
what is the best method to deploy from a development machine to production when you need slightly different files for each mode do you use TWO files such as db.yml.dev and db.yml.prod and use capistrano to deploy one or the other to database.yml or is it better to have one file and use conditions in your file such as <% if ENV[''RAILS_ENV''] = "production" %>
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 Jan 16
2
Basic (newbie) Webrick / ssl config question
I have a simple Intranet app I want to make accessible via the Internet for remote access by our employees. I want to use ssl (https) connections and I''ve found enough messages to imply Webrick as included in rails can do the job. The message at http://wrath.rubyonrails.org/pipermail/rails/2005-January/001993.html even appears to tell me exactly how to do it by modifying
2006 Aug 06
19
Rails *that* slow?
I''m working on my first little rails-application. It''s a rewrite of a gallery-script i once made (in PHP): http://notdotnet.net However - my rails-version is waaay to slow :( http://r.notdotnet.net/ I don''t do any heavy image-processing, I don''t have any killer-algorithms with a time complexity on O(n^n), and I don''t use any major hacks. The only
2007 Oct 22
4
HOW TO REBUILD DATABASE WITH CAPISTRANO
I''ve deployed an application using Capistrano. But on my local machine I edited one of the earlier migrations. I''ve tried "cap deploy_with_migrations", but it looks like it didn''t rebuild the database. How can I do the equivalent of this using Capistrano? "rake db:migrate VERSION=0" "rake db:migrate" -- Posted via
2006 May 17
3
Capistrano: Skipping require of dynamic string
Hi all, I am starting out to play with capistrano. I installed the capistrano gem, and I got some messages. I am not sure if these are errors, warnings or just status messages.I hope someone here can help me understand these messages, so that I don''t suspect Capistrano installation if I run into issues further down. :-) binil$ gem install -r capistrano Attempting remote installation
2010 Mar 05
1
WEBrick 500 error only with https
I have an application i''m installing on my application server. I''ve been using WEBrick and for now i''d like to just keep using it working in prototype development mode. This works fine on my development machine using both http and https, where the host is ''localhost'' (ports 3000,3001). It also works fine on the application server http port 3000. The
2010 Oct 02
2
Unicorn doesn't reload the app after the HUP signal
Hi folks, I''ve experimented a problem while deploying my app, I''ve sent the HUP signal to the master process, I''ve checked everything is ok: new master and workers are spawned and the old ones are killed(I''ve checked the PIDs), but the new code deployed isn''t reflected in the living site, so I''ve to stop and start again unicorn in order to see
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
2009 Aug 12
3
Commands I will need to know in production
I''m fairly certain this is an easy question to answer but I like to make things more complicated than they need to be. I notice that a lot of people have: RAILS_ENV=production .. in their environment.rb files I don''t have this in mine on production but passenger/apache startup my app just fine in production mode. So, is it really necessary? I also noticed that in order to
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to because of memory leaks in 0.13.1 under linux environment. Right now the application is running fast and steady under linux, with no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has become unusable under Windows (our main development environment) where I am getting a lot of segmentation faults. BUT the problem
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi. I am using BackgrounDRb to process thumbnails and upload to S3 - things are hunky-dory in development (thumbs are generated, these are uploaded to S3, the metadata is saved to trhe DB, and I get a nice status page updated by periodic calls via ask_status), but when I tried to deploy to our staging server and stop/start BackgrounDRb via Capistrano, things blew up - well, not exactly,
2011 Aug 18
3
Rails 3 - Production Environment
Hello Everyone, I need some help related to the below requirements: -> I need to setup production environment without installing Ruby or Rails or other related gems into it. I did accomplish the same using JRuby, bundler and warbler plugin. And deployed the WAR file into Apache Tomcat server. But now I have to do this without JRuby & Apache Tomcat. -> I have to setup Apache with
2013 May 15
1
staging deploy connected to production database
I''m not sure why but I have both a staging and production deploy using the ''capistrano/ext/multistage'' gem. I set staging to the default: set :stages, ["staging", "production"] set :default_stage, "staging" It deploys correctly to the right path: #deploy/staging.rb set :deploy_to, "/home/myuser/public_html/mysite/" But it
2006 May 31
19
Rails Deployment: Book recommendation?
Hello, I''m seeking a book on rails deployment (I think a general deployment on nix book can helps too) I need in depth information about Apache, FastCGI, (LightTPD maybe). I was thinking always I know what a web server is! but when I think more deeply about it (after reading Capistrano doc) it seems I need more info about app, web and db servers. stuff like how to config the app server