similar to: Multiple after_deploys in deploy.rb

Displaying 20 results from an estimated 1000 matches similar to: "Multiple after_deploys in deploy.rb"

2006 Apr 25
4
Symlinks in Capistrano?
I have a few projects with large directories (say, user-uploaded files) that make using Capistrano a bit awkward. However, I suspect that I may have reached the "write a custom task" level. (I suppose I''m just thinking out loud, here...) It seems as though I''d want this directories symlinked in /shared... Maybe there''s a way to extend the
2006 May 14
2
Capistrano + symlink to a shared images directory
Hi everyone, I have deployed a rails tumblelog site via capistrano, but have run into a problem. What I am wanting to do is this: In my deployment script create symlinks from the public directory so that the images directory points to a shared images directory. Reason being is I am adding an image upload to the site (not file_column) and need to easily add the uploaded images and thumbs into
2015 Apr 05
3
[LLVMdev] alloca not in first bb behaving differently
Here is some IR that is working and executing as expected -- All allocas are in the first basic block, and only updates happen in other basic blocks. define i32 @f() { entry: %x = alloca i32 store i32 333, i32* %x %i = alloca i32 store i32 11, i32* %i br i1 true, label %if.then, label %if.else if.then: ; preds = %entry store i32 3, i32* %i
2006 Feb 11
5
after_(read|find) callback?
I am pondering the possibility of encrypting/decrypting some fields in a SQLite backend on-the-fly. The point of the message is not security, I know that''s broken, but whether there''s a technique that provides on-the-fly save/read filters. Of course the solution would need to work transparently in joins, so user.posts.last.title would do the right thing if title
2015 Apr 05
2
[LLVMdev] alloca not in first bb behaving differently
It's not great IR, but it doesn't look like it should actually crash, just (without SROA) produce comparatively bad code. The alloca is only referenced in the basic block that it exists. If this isn't expected to work, then we should probably improve the documentation of alloca in the language reference. David > On 5 Apr 2015, at 04:55, Eric Christopher <echristo at
2009 Jul 31
6
Background daemon
It''s sending e-mail every hour, but I changed to sleep for a day, but keep send the e-mail by hour. I don''t know what to do to send daily. Could somebody help me? thanks ############ # mailer.rb ############### #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" require File.dirname(__FILE__) +
2015 Apr 05
2
[LLVMdev] alloca not in first bb behaving differently
Thanks all. David why do you say it is particularly bad IR (other than not having gone through SROA). Is it the multiple blocks for early returns? That is how I'm supporting early returns in the middle of a basic block. I couldn't find any other way. On Sun, Apr 5, 2015 at 6:24 AM, David Jones <djones at xtreme-eda.com> wrote: > Data point: > > I use (rarely) alloca in
2006 Jul 21
1
Capistrano before and after tasks
I try to extend db:test:copy_structure task to poulate test database with some existing data everytime i run it. It seems that "after_" task is not called as should be: > namespace :db do > namespace :test do > task :after_clone_structure do > puts "after_clone_structure_to_test" > end > end > end Anyone know what I am doing wrong?
2006 Jul 27
5
Dreamhost working deploy.rb? Can anyone post/send me a copy?
Hi, Just trying to get Capistrano working to Dreamhost. I''m hitting a permissions issue on the reaper file at the moment. Has anyone a copy of the capistrano DEPLOY.RB file they could post or send me a copy of please? Thanks Greg -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
0
reintializing a model object to invoke model callbacks
Any thoughts on this one guys? How do I reinitialize an already initialized model object in my controller in one shot rather than manually initializing each attribute? In other words, I do a find like so: user = User.find(id) # Now I want to reinitialize the user object by using the params["user"] but I''d like to intialize it in a way that calls my model''s equality
2006 Apr 26
0
Observer method names
I haven''t seen it documented anywhere, but can observer methods be given a prefix in their name like ''after_'' followed by my controller''s method name? For instance I have a couple of methods called ''create'' and ''create_reply''. Can I have ''after_create'' and ''after_create_reply'' in my
2007 Sep 07
4
Ferret DRB - can add/edit index, but can''t search
I''m trying to use the Ferret DRB server to avoid concurrency issues when using multiple mongrels. I can successfully add and edit data on my index via the DRB server, however, when I search the index, I get the following error: DRb::DRbConnError (DRb::DRbServerNotFound): /usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server'' /usr/lib/ruby/1.8/drb/drb.rb:1709:in
2006 Aug 16
4
Deploying only what you need with Capistrano?
The recent Rails security issue highlighted a concern I''ve had about Rails deploys; namely, you shouldn''t deploy anything to production that you don''t need there. Rails apps have a number of scripts--potential security holes or DOS targets in this case--along with all the other application code you need. There''s no reason you should have script/server, console,
2011 May 02
3
Issue providing seamless migrtion (3.0.24 to 3.5.6) - sambaNTPassword mystery
Hello everyone, I am operating a migration of samba from 3.0.24 (mysql passdb backend) to 3.5.6 (openldap passdb), samba working as a domain controller (PDC) and file share. The main challenge is to provide a seamless migration for users. For this new version, I am using smbldap-tools 0.9.6, nss_ldap, openldap 2.4. Everything run on FreeBSD 8.2. To get used to samba, I have managed to make
2007 Apr 03
5
Inifinite loop problem with DRb server
Hi all, We''re attempting to use Ferret with the DRb server at the moment, and it doesn''t work, at all... = Executive Summary The DRb server process keeps on calling the remote index to the DRb server process... Which means DRb is calling itself, and itself, and itself, until Ruby kills the Thread with a SystemStackLevel error. = The excruciating details... # Mongrel is
2005 Dec 27
2
Praise Switchtower (plus a quick question)
Switchtower is really cool once you get it going. Quick question, I do a: % rake deploy % rake remote_exec ACTION=symlink_pictures ...but what''s the easiest way to combine the two in a single command? Thanks CM -- Posted via http://www.ruby-forum.com/.
2006 Mar 08
6
best practices for handling uploaded images and capistrano
Quick question: I am going to use the file_column plugin to manage uploading thumbnails. By default the images are stored in the public/ dir of the rails project. The problem I see is that when capistrano redeploys a new build and symlinks it in none of the images will be in the new public/ dir... Does anyone have a solution for this? Thanks, Zack -------------- next part -------------- An
2009 May 19
7
Hamachi annoyances
Hi all, Got a very frustrating problem here, I've been trying to use hamachi to play a few games over it's virtual lan connection. With all the games in question, be they native or run via wine, they all seem to not be able to pick up on the hamachi network. My /etc/hosts file has the following entries. 5.86.189.163 sirbubbles-desktop 127.0.0.1 localhost 127.0.1.1 sirbubbles-desktop I
2006 Jan 03
2
Stopping a save from the before_save
What''s the better thing to do in a before_save if you don''t want the save to continue? raise an exception, or do an errors.add or both? Thanks, Chris Nolan.ca http://kweschun.com/ - Do you have a Kweschun?
2009 Jun 08
2
To deploy or not to deploy on App Engine
I am nearing the end on a project i have been working on and am trying to figure out where to host it. I am very tempted to host it on google''s app engine. you get a ton of space, band width, and processor all for free! I was hoping to get some advice as to what people think about deplying on the app engine. Would it better to wait until ruby is supported? Are there perfomrance issues