Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Deployment help
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Jillian  
View profile   Translate to Translated (View Original)
 More options 2 July, 03:41
From: Jillian <jill...@gmail.com>
Date: Wed, 1 Jul 2009 19:41:12 -0700 (PDT)
Local: Thurs 2 July 2009 03:41
Subject: Deployment help
Hi,

I am trying to have a wiki on the same domain as my rails
application.  I use capistrano to deploy the rails app, and I figured
that the best way to go about this would be to have a symlink from the
public_html directory to the wiki directory.  However, every time I
redeploy the rails application, the symlink is overwritten, and the
tasks I write within deploy.rb to create this symlink do not seem to
work.  Any assistance would be much appreciated.

Thanks,
Jillian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lee Hambley  
View profile   Translate to Translated (View Original)
 More options 2 July, 10:19
From: Lee Hambley <lee.hamb...@gmail.com>
Date: Thu, 2 Jul 2009 10:19:51 +0100
Local: Thurs 2 July 2009 10:19
Subject: Re: [capistrano] Deployment help

Jillian, please paste your deploy.rb - particularly the task definition to
make the symlink and the hook to insert that into the execution chain.
-- Lee

2009/7/2 Jillian <jill...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Kolen  
View profile   Translate to Translated (View Original)
 More options 2 July, 14:46
From: John Kolen <johnfko...@gmail.com>
Date: Thu, 2 Jul 2009 06:46:20 -0700
Local: Thurs 2 July 2009 14:46
Subject: Re: [capistrano] Deployment help

How about putting the wiki symlink in shared/system directory?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donovan Bray  
View profile   Translate to Translated (View Original)
 More options 2 July, 15:37
From: Donovan Bray <donno...@gmail.com>
Date: Thu, 2 Jul 2009 07:37:58 -0700
Local: Thurs 2 July 2009 15:37
Subject: Re: [capistrano] Deployment help
What's the task look like and I would suggest creating the symlink  
with an after hook of deploy:update_code or a before deploy:symlink

On Jul 1, 2009, at 7:41 PM, Jillian <jill...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jillian  
View profile   Translate to Translated (View Original)
 More options 4 July, 05:59
From: Jillian <jill...@gmail.com>
Date: Fri, 3 Jul 2009 21:59:43 -0700 (PDT)
Local: Sat 4 July 2009 05:59
Subject: Re: Deployment help
I'm probably going about this all wrong, here's the deploy.rb file:

###### START DEPLOY.RB ######

# Your cPanel/SSH login name

set :user , "root"

# The domain name of the server to deploy to, this can be your domain
or the domain of the server.

set :server_name, "sswl.railsplayground.net"

# Your svn / git login name

set :scm_username , "jek339"

set :scm_password, "lw0rdr0"

# Your repository type, by default we use subversion.

set :scm, :subversion

# The name of your application, this will also be the folder were your
application

# will be deployed to

set :application, "SSWL"

set :domain, "sswl.railsplayground.net"

# the url for your repository

set :repository,  "http://sswl.svnrepository.com/svn/SSWL/trunk/SSWL"

set :deploy_to, "/home/sv620/#{application}"

set :current, "#{deploy_to}/current"

set :use_sudo, false

set :group_writable, false

default_run_options[:pty] = true

# add the options re: the staging/production servers here

role :app, "sswl.railsplayground.net"

role :web, "sswl.railsplayground.net"

role :db,  "sswl.railsplayground.net", :primary => true

# set the proper permission of the public folder

task :after_update_code, :roles => [:web, :db, :app] do

  run "chmod 755 #{release_path}/public"

  run "chmod 755 #{release_path}/public/dispatch.fcgi"

  run "chmod 755 #{release_path}/public/dispatch.cgi"

  run "chown sv620:sv620 #{release_path} -R"

  run "ln -s #/home/sv620/wiki ~/public_html/wiki"

end

namespace :deploy do

  desc "cold deploy"

  task :cold do

    update

    fastcgi::create_public_link

    fastcgi::restart

  end

  desc "restart dispatchers"

  task :restart do

    fastcgi::restart

  end

end

namespace :fastcgi do

  desc "Restart dispatchers"

  task :restart do

    run "killall -9 dispatch.fcgi"

  end

  desc "Create symbolic link"

  task :create_public_link do

    run "cd /home/sv620; mv public_html public_html_bk; ln -s #
{current_path}/public ~/public_html"

  end

end

###### END DEPLOY.RB ######

On Jul 2, 10:37 am, Donovan Bray <donno...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google