ubuntu, ror, jQuery, css, website memo
太嫩, 沒啥心得, 用來紀錄每天學的
2009年7月15日 星期三
capistrano deploy.rb 設定 註解
Capistrano deploy.rb文件的記錄
# 在redhat 內核中不需要sudo 方式運行。 <br /> set :use_sudo, false # Do not use sudo ro run command. <br /><br /> set :domain, 'www.firebirds.com'<br /> set :application, 'ruby_on_rails'<br /> set :user, 'root' # connect to server use this variable. # 連接app服務器,並執行命令 <br /><br /> set :repository, "svn://172.10.12.8/www/ror/trunk"<br /><br /> set :port, 8888 # connect server use ssh with this port# ssh連接app服務器的端口號. <br /><br /> set :deploy_to, "/var/www/ror" # deploy to server location <br /><br /> # set :scm, :subversion <br /> set :scm_username, 'xxx'<br /><br /> set :scm_password, proc{Capistrano::CLI.password_prompt('SVN pass:')} # 在出現SVN pass: 時輸入svn密碼. # 在第一次用過後,svn shell會記住此密碼,下次可不用。 <br /><br /> role :app, "172.10.12.8"<br /> role :web, "172.10.12.8"<br /> role :db, "172.10.12.8", :primary => true<br /><br /> # app, web, db 都 在同一台機器上如下即可 <br /> #server "172.10.12.8", :app, :web, :db, :primary => true <br /> set :deploy_via, :export # 在服務器上連接到源碼庫裡去更新 <br /> # set :deploy_via, :copy # 在本地打包上傳至服務器 <br /><br /> set :runner, user # excute command with the front of user defined. <br /><br /> # Does not look like you are using the fastcgi processes that reaper is <br /> # designed to restart in the setup you described. In your cap script set <br /> # them to false. EG set :spinner, "false". See the manual for details. <br /> set :spinner, "false" # 使用fascgi 的話,把此行註釋 <br /><br /> #after 'deploy', 'deploy:cleanup' # hock after deploy <br /> #after 'deploy:migrations', 'deploy:cleanup' # hock after deploy:migrations<br />
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言