所有capistrano文檔似乎暗示有一個默認命名空間「部署」與一些標準任務,如安裝程序,update_code,重新啓動等,但是當我做cap -T它只顯示我已經定義的任務和不是部署任務。我是否需要執行其他任何操作來啓用部署任務?我使用Capistrano的版本2.9.0Capistrano部署命名空間
0
A
回答
1
你有一個項目中的根總監名爲Capfile
文件ÿ? 礦山如下
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
2
MBP:CMS bladeyu [大師] $帽-T
cap bundle:install # Install the current Bundler environment.
cap deploy # Deploys your project.
cap deploy:assets:clean # Run the asset clean rake task.
cap deploy:assets:precompile # Run the asset precompilation rake task.
cap deploy:check # Test deployment dependencies.
cap deploy:cleanup # Clean up old releases.
cap deploy:cold # Deploys and starts a `cold' application.
cap deploy:migrate # Run the migrate rake task.
cap deploy:migrations # Deploy and run pending migrations.
cap deploy:pending # Displays the commits since your last deploy.
cap deploy:pending:diff # Displays the `diff' since your last deploy.
cap deploy:rollback # Rolls back to a previous version and restarts.
cap deploy:rollback:code # Rolls back to the previously deployed version.
cap deploy:setup # Prepares one or more servers for deployment.
cap deploy:symlink # Updates the symlink to the most recently deplo...
cap deploy:update # Copies your project and updates the symlink.
cap deploy:update_code # Copies your project to the remote servers.
cap deploy:upload # Copy files to the currently deployed version.
cap deploy:web:disable # Present a maintenance page to visitors.
cap deploy:web:enable # Makes the application web-accessible again.
cap invoke # Invoke a single command on the remote servers.
cap shell # Begin an interactive Capistrano session.
cap whenever:clear_crontab # Clear application's crontab entries using When...
cap whenever:update_crontab # Update application's crontab entries using Whe...
Some tasks were not listed, either because they have no description,
or because they are only used internally by other tasks. To see all
tasks, type `cap -vT'.
Extended help may be available for these tasks.
Type `cap -e taskname' to view it.
MBP:CMS bladeyu [大師] $寶石列表Capistrano的
*** LOCAL GEMS ***
capistrano (2.9.0)
MBP: CMS bladeyu [大師] $帽-vT
cap assets:cleanup #
cap assets:precompile #
cap assets:redigest #
cap bundle:install # Install the current Bundler environment.
cap custom_symlink #
cap deploy # Deploys your project.
cap deploy:assets:clean # Run the asset clean rake task.
cap deploy:assets:precompile # Run the asset precompilation rake task.
cap deploy:assets:symlink # [internal] This task will set up a symlink to ...
cap deploy:check # Test deployment dependencies.
cap deploy:cleanup # Clean up old releases.
cap deploy:cold # Deploys and starts a `cold' application.
cap deploy:finalize_update # [internal] Touches up the released code.
cap deploy:migrate # Run the migrate rake task.
cap deploy:migrations # Deploy and run pending migrations.
cap deploy:pending # Displays the commits since your last deploy.
cap deploy:pending:diff # Displays the `diff' since your last deploy.
cap deploy:restart #
cap deploy:rollback # Rolls back to a previous version and restarts.
cap deploy:rollback:cleanup # [internal] Removes the most recently deployed ...
cap deploy:rollback:code # Rolls back to the previously deployed version.
cap deploy:rollback:revision # [internal] Points the current symlink at the p...
cap deploy:setup # Prepares one or more servers for deployment.
cap deploy:start #
cap deploy:stop #
cap deploy:symlink # Updates the symlink to the most recently deplo...
cap deploy:update # Copies your project and updates the symlink.
cap deploy:update_code # Copies your project to the remote servers.
cap deploy:upload # Copy files to the currently deployed version.
cap deploy:web:disable # Present a maintenance page to visitors.
cap deploy:web:enable # Makes the application web-accessible again.
cap invoke # Invoke a single command on the remote servers.
cap precompile_trace #
cap setup_file_tree #
cap shell # Begin an interactive Capistrano session.
cap whenever:clear_crontab # Clear application's crontab entries using When...
cap whenever:update_crontab # Update application's crontab entries using Whe...
Extended help may be available for these tasks.
Type `cap -e taskname' to view it.
+0
感謝這個漂亮的提示..我正在尋找其他的東西,得到了這個.. –
相關問題
- 1. 部署與Capistrano
- 2. Capistrano的部署
- 3. 部署與Capistrano
- 4. Capistrano部署源
- 5. 用capistrano和rvm-capistrano部署
- 6. capistrano部署 - 基本命令失敗
- 7. C-命名空間部分
- 8. Capistrano部署與rbenv
- 9. Capistrano部署失敗
- 10. Capistrano部署錯誤
- 11. Capistrano部署配置
- 12. 多個capistrano部署
- 13. Capistrano的不部署
- 14. 部署與Capistrano的
- 15. Capistrano部署錯誤
- 16. Capistrano部署超時
- 17. Capistrano部署與rsync
- 18. Capistrano部署問題
- 19. https部署與capistrano
- 20. 章魚部署找不到命名空間轉換文件
- 21. Kubernetes:在kube-system命名空間中編輯Heapster部署
- 22. 類型或命名空間找不到錯誤部署網站
- 23. 部署Rails 3.1命名空間資產到Heroku
- 24. 重命名命名空間
- 25. capistrano命名空間的用途是什麼?
- 26. 如何從不同的命名空間觸發Capistrano任務:deploy?
- 27. 命名空間
- 28. 命名空間
- 29. 命名空間
- 30. 命名空間
我沒有使用capify生成Capfile因此它沒有你提到的線條。在添加這些線路的時候, – randomuser