similar to: Best Practice: file_column+Switchtower

Displaying 20 results from an estimated 5000 matches similar to: "Best Practice: file_column+Switchtower"

2006 Jan 17
3
file_column :root_path question.
I''m developing on Windows and deploying to FreeBSD+lighttpd using Switchtower and I''ve got things generally working. My problem now is that file_column data gets zapped every time I deploy, because Switchtower creates a whole new myapp/public directory with each rev. I looked through the file_column docs and found the :root_path option, which I use in my models as follows:
2005 Oct 09
6
Problem With url_for_file_column/file_column
I am using the very helpful file_column extension in my app. The uploading portion works great - no problems. Where I am having an issue is displaying the images in my view. My code looks like this: <% for @record in @main_box_releases -%> <%= image_tag(url_for_file_column("record", "record_cover")) %> <% end -% @record is an instance of a class called
2006 Aug 05
3
Uploading/file_column and Mongrel
Howdy, I recently switched an app to Mongrel and since the switch, when I upload files using the file_column plug-in, the files are not uploaded with the correct permissions. I want something like this: -rw-rw-rw- file.jpg But I am getting: -rw------- file.jpg So, of course the files aren''t being served up by the Web server. Mongrel is running as the ''mongrel''
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the "Picture" class (HABTM). Right now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a way I can dynamically define the "store_dir" based on the model? For example, if I have "user", "product" and "place" models all
2006 Feb 11
1
Switchtower deploy fails though setup works
I''m trying to use SwitchTower to deploy from XP to Dreamhost. Based on <http://nubyonrails.com/pages/shovel_dreamhost>, my deploy.rb looks like: set :user, ''dankohn'' set :application, "flydash.com" set :repository, "http://svn.flydash.com/flydash/flydash" #set :repository, "svn+ssh://home/#{user}/svn/flydash" #set :repository,
2006 Feb 21
9
SwitchTower 1.0.1, SwitchTower Extensions
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles. Manual: http://manuals.rubyonrails.org/read/book/17 Project:
2006 Jan 05
4
Switchtower for distribution?
I am just about to dive into Switchtower, but had a thought (go figure?). Could Switchtower use be inverted? Could user, clients, or customers install switchtower and "pull" applications? Just a thought. -- Posted via http://www.ruby-forum.com/.
2006 Feb 19
2
SwitchTower 1.0.0
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles. Manual: http://manuals.rubyonrails.org/read/book/17 Project:
2006 Jan 02
3
SwitchTower 0.10.0
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles. It was developed primarily to ease the pain of deploying Rails applications to multiple machines, but can
2006 Feb 17
1
switchtower, CVS, and ''configuration.local''
I''m trying to get switchtower to work with CVS. I see "querying latest revision..." and then it states "[update_code] transaction: rollback" I''m open to any and all suggestions at this point. I put some logging statements in the switchtower code and it seems to fail at this statement in switchtower-0.10.0/lib/switchtower/scm/cvs.rb @latest_revision =
2006 Jan 28
1
Switchtower different svn repo urls from my local box and my shared hosting
I got problems running switchtower 0.10.0 when I try to run "rake deploy" from my local box (windows) to my shared hosting If I set the repository to (deploy.rb): set :repository, "file:///home/[my_user]/repo/[my_app]/trunk" My local box (windows) can''t reach the subversion repository located in site5 If I set the repository to: set :repository,
2006 Jan 26
7
Switchtower Port Issues
Hi there, I''m having some difficulties finding some decent info on getting Switchtower to function for my needs. I''ve read most of the Switchtower doc on http://manuals.rubyonrails.com/read/chapter/97, however it''s not answering some potent questions I have. 1. The doc mentions, as an example, using an SVN repos at http://svn.switchtower.com/flipper/trunk What if I
2005 Dec 22
4
Switchtower problem - `sysread'': bignum too big to convert into `long'' (RangeError)
I''m trying to set up switchtower, following the info in the Manual, but am getting this error when I run "rake remote_exec ACTION=setup": servers: ["cantona.dnswatchdog.com"] /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:203:in `sysread'': bignum too big to convert into `long'' (RangeError) from
2006 Feb 09
1
SwitchTower with multiple repositories
I''d like to get SwitchTower to checkout from different repositories per role? The db role checks out different stuff from the app role, etc. I don''t mind redefining SwitchTower::SCM::Subversion.checkout. But I''m not sure the best way to do it. How would that method parameterize the repository based on role? It''d be something like this: command =
2005 Sep 19
5
switchtower beta gem?
would it be possible to get another beta gem posted for switchtower? core rails has been getting nice regular updates to the beta gems, but switchtower is still back at 1962.
2005 Dec 21
4
Switchtower question: how to use SVN export
I use Switchtower to deploy my Ruby on Rails application, which works great. However, it appears to be doing a SVN checkout, which includes all the .svn directories as well. I would rather do an export from SVN. Is it possible to configure Switchtower to do this, or can I extend it in the deploy.rb? I haven''t been able to find any examples on the internet so far. thanks, Jeroen
2006 Jan 05
1
How to freeze SwitchTower
Hi all, I''m wondering if "rake freeze_gems" will freeze SwitchTower as well. If it doesn''t, I could try to modify the rake task at [1] to freeze extra gems such as switchtower into vendor/ (the rake task at [1] freezes gems into lib/ which I disagree with). Is there anyone else actually using a "frozen" SwitchTower? If so, what did you do to freeze it with a
2006 Mar 01
4
SwitchTower deployment has errors with different :db server
When I define :db to be a different server than either :web or :app, and run "rake deploy". Switchtower will abort with an Net::SSH::AuthenticationFailed error. The version of Switchtower I''m using is 1.0.0 and the deploy task is the default supplied with Switchtowe. However, I dont have any problem when :db is changed to the same as :web and :app. -------------- next part
2005 Dec 22
3
How to specify SwitchTower SSH port
Hi ! Following Ezra's suggestions on http://brainspl.at/pages/perfect_vps, I changed the port sshd listens to. I'm trying to setup SwitchTower, and I don't know how to set the port. Where should that be configured ? I can't see anything in switchtower.rake, nor can I see it in the source. If this already exists, can anybody point me to documentation. If not, can I get any
2005 Nov 07
5
Switchtower deployment
Hi, Has anyone experiences using SwitchTower (Windows) in a shared hosting environment (Textdrive)? I already patched the SwitchTower rake tasks (I don''t know if someone is interested on it), but i still experience some problems (not in the sudoers list, ...). Thank you for answer (and thank you to the textdrive guys, i never had a such fast support!) -- Jean-Etienne Durand