similar to: Howto customize deployment with capistrano2

Displaying 20 results from an estimated 400 matches similar to: "Howto customize deployment with capistrano2"

2007 Sep 12
1
newbie: getting started with database, local computer, host
well this may very well be a super easy one, but I can''t seem to find an answer. I think it''s really neat that ruby on rails has so many things built in like multiple databases for production, testing. if i create a database on my local machine, and create my rails app locally... will everything get synced with my webhost when i use capistrano? or do i need to log-in to the
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: <% if @captcha_error -%><div class="fieldWithErrors">< % end -%> 59: <table class="signup"><tr> 60: <td
2007 Oct 03
2
Scroll to anchor from RJS
Is there an way to tell the browser to scroll to a certain anchor from an RJS template? I''m doing a page update, adding stuff at the bottom and want to browser to go there after it''s been added. Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2007 Aug 14
1
can not delete pid fils when stopping mongrel_cluster
Hi all, i im using Capistrano2 to deploy my rails app and Apache/Mongrel as it''s env. All is well except deploy:rollback task. the following is log messages when running cap deploy:rollback : [DEPRECATION] Capistrano.configuration is deprecated. Use Capistrano:: Configuration.instance instead * executing `deploy:rollback'' * executing `deploy:rollback_code'' *
2006 Apr 03
2
Capistrano - how do I set up the database config?
My app is set up without database.yml in version control. I created a shared_path/config dir, and put database.yml in it. After I update the code, I want to link the app''s database.yml file to the shared config. So I added this task desc ''Copy the database config'' task :after_update_code, :roles => :app do run "ln -s #{shared_path}/config/database.yml
2011 May 11
3
Constructing an array of stuff (to send multiple apple push notifications)
I''m using this gem https://github.com/justintv/APNS to send push notifications to an iPhone app and amazingly it works for single notifications, such that I can do... APNS.send_notification(Device.first.device_token,''test message'') Works great... Now it should be a simple task (as per the docs to send multiple notifications) Gem says like this... device_token =
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
2007 Oct 25
2
Good capistrano books, tutorials, guides
Hi, seems like there isn''t any good books, tutorials or guides on capistrano out on the web. Appreciate if someone can post up where to look for good capistrano resources. It seems that there is some learning curve for capistrano.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Nov 21
0
Add Javascript to :confirm in form submit
I want to have some logic in my :confirm message, so that if the user enters some illegal data, it will notify directly when clicking on submit, and doesn''t have to go through the server. How can I add my Javascript code to the Rails :confirm attribute? Can I do that with AJAX forms? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ You received this message because
2008 Feb 11
0
Call methods from ApplicationController from a cron job
Hi, Can code in my cron job call methods from ApplicationController? It needs to act as if a user called a function, which triggers a whole lot of code that I have in the controller. I don''t want to separate this to a library, because this way, the controller will look pretty messy. Is there any was I can require the application controller and then call its methods from the cron job?
2007 Apr 24
1
Testing for multipart form uploads
Hi, I''m trying to do integration tests that require uploading files via multipart posts. Have seen a very similar discussion, but cannot get it to work. Maybe, it''s out of date now with Rails 1.2.3: http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/fdfd2c040a2425f4 >From what I understand, fixture_file_upload''s output is translated a String.
2010 Jun 29
3
FTP: which FTP is best for Ubuntu to upload rails project
I am trying to upload the constants to my shared server but built in FTP in Ubuntu is not working -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2008 May 28
3
Mocking objects to test Rails Controllers
Hi all, I''m currently considering the use of Mocha to aid in writing my Rails unit/functional tests. I currently have a Rails model which mixes in a series of methods to allow it to talk to an external service. The code is roughly of this form: class Person < ActiveRecord::Base include SMSNotifier def send_notification(message) send_sms(number,message) #
2006 Jun 01
2
Capistrano: update_code - "No such file or directory" -
Hi folks, I''ve been staring at this one for far too long. I''m using Windows SVN client + Capistrano to deploy rails app to my hosted server. I can''t seem to get a single successful deployment. I keep getting this "No such file or directory - svn log -q -rhead http://myhost.com/svn/spclient/trunk " . I run this svn command from the cmd prompt and it
2006 Mar 16
4
Capistrano :update_code problem
Hi all, I want to love capistrano and I''m so close. My error is occuring while running the update_code task... (apologies for the shell spew) ************************************************************************* * executing "rm -rf /home/henster29/sites/glitter/releases/20060316143447/log /home/henster29/sites/glitter/releases/20060316143447/public/system &&\n ln
2006 Jan 27
6
Switchtower deploy error
I''m trying to deploy a rails app with no success. I can execute: ''rake remote_exec ACTION=setup'' but when I try to execute : ''rake deploy'' I got this error: loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0 /lib/switchtower/recipes/standard.rb loading configuration ./config/deploy.rb executing task deploy transaction: start
2006 Jun 01
0
Capistrano: update_code -
C:\....Rails>rake deploy --trace (in C:\....Rails) ** Invoke deploy (first_time) ** Invoke remote:deploy (first_time) ** Execute remote:deploy loading configuration c:/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/ca pistrano/recipes/standard.rb loading configuration ./config/deploy.rb * executing task deploy ** transaction: start * executing task update_code * querying
2008 Jan 10
3
A best practices question
Hey everyone. I''ve got a best practices question. How are you guys rendering newsfeeds? We have a couple of apps where we send newsfeed items from a backend process. As such, we aren''t in the context of a controller and can''t use the rails template rendering. We''ve tried about 3 different ways to make that bearable, but aren''t having much
2007 Jul 17
0
uninitialized constant ExceptionNotifiable deploy_with_migrations in TEST
I have installed the exception_notification plugin, and it works fine when system is deployed to production. and I have not problems deploying to dev, and not test environments. However, when I try to do a deploy_with_migrations, I get the uninitialized constant ApplicationController::ExceptionNotifiable error. There must be something ''special'' about the test env, but I
2006 Mar 09
1
Capistrano Error undefined method ''local''
I get an error after running Capistrano deploy... zdennis@silver:~/source/projects/listedpropertiesllc.com$ rake deploy (in /home/zdennis/source/projects/listedpropertiesllc.com) loading configuration /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb loading configuration ./config/deploy.rb * executing task deploy ** transaction: start * executing