Displaying 20 results from an estimated 20 matches for "shared_path".
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/...
2010 Apr 07
1
Per-user flags for shared folders
...se if somebody delete a message, it
dissapear for other users of group mailbox. So my group mailboxes look like
a big scrapyard[?] I can compile from sources and add also \Deleted flag to
private flags, but it's not an elegant solution[?]
And my idea is easy to implement :) Only add here:
305 shared_path = t_strconcat(box->path, "/dovecot-shared", NULL);
306 if (stat(shared_path, &st) == 0)
307 box->private_flags_mask = MAIL_SEEN;
in maildir-storage.c some code for reading a mask from dovecot-shared file.
Unfortunatelly I'm not a good programmer, so I can't make a patch...
2006 Mar 16
4
Capistrano :update_code problem
...******************************************************
task :update_code, :roles => [:app, :db, :web] do
on_rollback { delete release_path, :recursive => true }
source.checkout(self)
run <<-CMD
rm -rf #{release_path}/log #{release_path}/public/system &&
ln -nfs #{shared_path}/log #{release_path}/log &&
ln -nfs #{shared_path}/system #{release_path}/public/system
CMD
end
**************************************************************************
Which looks like (to me) that it blows away
#{release_path}/public/system and then tries to make a link in there....
2006 Oct 13
0
Deployment problem with Capistrano
...mn created content
directories (in
shared) and copy the database.yml file (also from shared) into the
current folder.
I''ve written the following task:
desc "Copy the database config file over and set up sym links to the
content"
task :after_update_code do
db_config = "#{shared_path}/config/database.yml"
puts "Cropying config files and creating content sym-links... "
sudo "cp #{db_config} #{release_path}/config/"
sudo "ln -s #{shared_path}/public/product
#{release_path}/public/product"
sudo "ln -s #{shared_path}/public/preview
#{...
2006 May 14
3
Configuring Capistrano For Local To Remote Deployment
How does one configure capistrano for moving local file to your remote
server? In the docs it says that one cannot use file:// so what''s the
configuration step for resolving this issue?
Thanks in advance,
-Conrad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060514/93bb7173/attachment-0001.html
2005 Jan 24
2
Problem with incorrect permissions with shared folders
Hi,
I'm seeing strange permissions when using an email client to create a new
sub folder in a shared folder.
This is dovecot-1.0test61
I have a directory /data/mail/shared owner=root
group=shared permissions=2770
I have a file /data/mail/shared/dovecot-shared owner=root
group-shared permissions=2660
User fred in in group shared (in /etc/group)
My understanding
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 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
2007 Jun 15
2
Ferret and capistrano, how to keep the indexes?
Hi, i''m using capistrano to deploy the application, but every time i
deploy it change all the directory, so i lost also the ferret''s indexes.
Is it possible to keep them in order to prevent the reindex on each
deploy?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 25
0
Capistrano adding shared files
...:before_task and :after_task facilities in Capistrano
very useful.
For example, I needed to add a shared directory to my system. All I had
to do was add a few lines to deploy.rb:
desc "Add shared usr_img directory to shared"
task :after_setup do
run <<-CMD
mkdir -p -m 775 #{shared_path}/user_img
CMD
end
desc "Link shared usr_img directory to public/usr_img"
task :after_update_code do
run <<-CMD
ln -nfs #{shared_path}/user_img #{release_path}/public/user_img
CMD
end
Whee!
--Al Evans
--
Posted via http://www.ruby-forum.com/.
2006 Feb 25
1
a switchtower recipe to copy rather than checkout
...etar code on server"
run <<-CMD
mkdir -p #{release_path} &&
tar -C #{release_path} -x -z -f code_update.tar.gz &&
rm -rf code_update.tar.gz &&
rm -rf #{release_path}/log #{release_path}/public/system &&
ln -nfs #{shared_path}/log #{release_path}/log &&
ln -nfs #{shared_path}/system #{release_path}/public/system
CMD
#puts "...cleanup"
system("rm -rf #{temp_dest} code_update.tar.gz")
end
2012 Dec 04
2
403 Forbidden from nginx when unicorn started in debug mode
...h "/var/www/aceleathergoods/shared/log/unicorn.stderr.log"
stdout_path "/var/www/aceleathergoods/shared/log/unicorn.stdout.log"
end
before_fork do |server, worker|
if defined?(ActiveRecord::Base)
ActiveRecord::Base.connection.disconnect!
end
old_pid = "#{shared_path}/pids/unicorn.aceleathergoods.pid.oldbin"
if File.exists?(old_pid) && server.pid != old_pid
begin
Process.kill("QUIT", File.read(old_pid).to_i)
rescue Errno::ENOENT, Errno::ESRCH
# someone else did our job for us
end
end
end
after_fork do |...
2013 Nov 29
4
Capistarno deploy each time ckeditor assets removed.
...e :uploads do
>
> desc <<-EOD
> Creates the upload folders unless they exist
> and sets the proper upload permissions.
> EOD
> task :setup, :except => { :no_release => true } do
> dirs = uploads_dirs.map { |d| File.join(shared_path, d) }
> run "#{try_sudo} mkdir -p #{dirs.join('' '')} && #{try_sudo} chmod
> g+w #{dirs.join('' '')}"
> end
>
> desc <<-EOD
> [internal] Creates the symlink to uploads shared folder
>...
2006 Apr 01
4
Saving images in shared directory w/ Capistrano/SVN?
Hi all,
I''m using Capistrano and SVN to version control and deploy, but I''m not
sure what to do about my images directory. I use file_column and
RMagick to save images to the disk under a model called "Image", and
they''re saved in public/image/... etc.
Each time I deploy a new version, my image folder doesn''t exist anymore.
I don''t want
2007 Jan 18
4
[ActsAsFerret] Index Directory Disappears and Not Re-created
Hi,
This is a recurring issue for me - the index directory on my production
server and everything below it occasionally disappears and isn''t
reconstructed. I tried manually creating the entire index path manually
before starting the server, but it still happened while the server is
running.
I don''t know what''s causing the index to disappear and I''m also not
2006 Feb 19
8
SwitchTower to skip config/ directory
Hello,
I am trying to figure out how to use switch tower.I have a local copy of
source code and I want to put it on the host.Now I dont want to put
directories like config/ because the settings on the host and the one on my
machine are different.
Any way to do this?
Also is svn necessary to use SwitchTower?
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Dec 20
0
How to debug acts_as_ferret on production system?...
...ret on a Rails site in
development mode, but deploying to a production system causes
some errors I haven''t been able to resolve.
My production deployment setup is Apache/mongrel and I''m
sharing the index directory across each deployment version
by linking {current_path}/index to {shared_path}/index in
the Capistrano setup. Edge Rails is svn externals''d into
the releases.
Visiting the new production system for the first time
leaves this error in the production.log:
LoadError (Expected
.../current/config/../app/models/page.rb to define Page):
/vendor/rails/activ...
2006 Mar 07
17
[UNDER CONSTRUCTION] YAC? (Yet Another Capistrano)
My needs are far more modest than Capistrano''s capabilities. Also, when
working in a shared hosting environment, the Capistrano model can be
outside the capabilities allowed by the Web host.
I simply need to push selected directories (on a changed-file basis) out
to a server. I have about 80% of the code written to do this (I''m
considering YAC for the name, with a nod to
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,
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: