代码之家  ›  专栏  ›  技术社区  ›  Meltemi

获取有关Capistrano任务的更多信息

  •  7
  • Meltemi  · 技术社区  · 14 年前

    我得到了一个Capistrano的配方,可以与Bundler和Rails(3.0.3)应用程序一起使用,但是在一些基本功能上遇到了问题。

    跟随 Bundler docs 对于“自动部署与Casistalo”,我试图获得更多的信息在一个任务,但由于某种原因,它“不存在”…

    $ cap -e bundle:install
    The task `bundle:install' does not exist.
    

    Capistrano(2.5.19)gem已经安装,我正试图从客户端(而不是服务器)上的项目根目录执行该命令。

    实际上cap-T没有显示任何与“bundle”或“install”相关的内容

    $ cap -T
    cap deploy               # Deploys your project.
    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:restart       # Restarts your application.
    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:start         # Start the application servers.
    cap deploy:stop          # Stop the application servers.
    cap deploy:symlink       # Updates the symlink to the most recently deployed ...
    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.
    

    我做错什么了?

    1 回复  |  直到 14 年前
        1
  •  5
  •   Simone Carletti    14 年前

    你在deploy.rb文件中包括配方了吗?

    require "bundler/capistrano"