Create a folder or go into your existing project folder and run
Make sure that you run the following commands outside your application's directory to avoid naming conflicts if you're planning to deploy a non-Ruby application.
This will create an empty Gemfile. Open the file in an editor and add the source of the corresponding gem server and the dkdeploy-core gem:
Now run bundler:
You should see bundler resolving dependencies and installing the required gems:
Run in your project root
This command will create the following Capistrano file structure with all the standard pre-configured constants.
Please be aware of the difference to the native installation of Capistrano.
Certainly you have to adjust config/deploy.rb and respective stages and customize them for your needs.
Before we continue, we have to alter the Capfile in your root directory:
When you run
you should see all available tasks. You are now ready to deploy your first project!