Skip to content

Commit 1272861

Browse files
authored
Merge pull request #448 from rubygems/remove-deprecated-deploying-sections
Remove deprecated Capistrano and Vlad sections from deploying guide
2 parents 5548c1a + f631188 commit 1272861

File tree

1 file changed

+2
-45
lines changed

1 file changed

+2
-45
lines changed

deploying.md

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@ $ git add Gemfile Gemfile.lock .gitignore
1818
$ git commit -m "Add Bundler support"
1919
~~~
2020

21-
Once you have done that, there are two ways to deploy using Bundler:
22-
manually or automatically.
23-
24-
### Manual deployment
25-
26-
In your deploy script, after updating to the latest
27-
code, install your bundle to the `vendor/bundle`
28-
directory, ensuring all your dependencies are met.
21+
After updating to the latest code, install your bundle to the
22+
`vendor/bundle` directory, ensuring all your dependencies are met.
2923

3024
~~~
3125
$ bundle install --deployment
@@ -40,38 +34,6 @@ gems will be used automatically.
4034

4135
<a href="https://bundler.io/man/bundle-cache.1.html" class="btn btn-primary">Learn More: Packing</a>
4236

43-
### Automatic deployment with Capistrano
44-
45-
To pull in the Bundler Cap task, just add this to your
46-
`deploy.rb` file:
47-
48-
~~~ruby
49-
require 'bundler/capistrano'
50-
~~~
51-
52-
That's it! Running `cap deploy` will now automatically run
53-
`bundle install` on the remote server with deployment-friendly
54-
options. A list of options that can be changed is available in the help
55-
for the cap task. To see it, run `cap -e bundle:install`.
56-
57-
### Automatic deployment with Vlad
58-
59-
There is a default Vlad task available. To make it available, add this line
60-
to the Vlad `deploy.rb`.
61-
62-
~~~ruby
63-
require 'bundler/vlad'
64-
~~~
65-
66-
Once you have done that, the `vlad:bundle:install` task will be
67-
available for use. Make sure it is run as part of your deploy. For example:
68-
69-
~~~ruby
70-
task "vlad:deploy" => %w[
71-
vlad:update vlad:bundle:install vlad:start_app vlad:cleanup
72-
]
73-
~~~
74-
7537
### After deploying
7638

7739
Make sure to use `bundle exec` to run any executables
@@ -135,11 +97,6 @@ provide one.
13597
- Bundler will not transparently update your `Gemfile.lock` if it is out of
13698
date with your `Gemfile`
13799

138-
If you use Capistrano, you should symlink `vendor/bundle` to
139-
`shared/vendor_bundle` so that bundler will share your installed gems between
140-
deployments (making things zippy if you didn't make any changes), but still give you the
141-
benefits of isolation from other applications.
142-
143100
By defaulting the bundle directory to `vendor/bundle`, and installing your
144101
bundle as part of your deployment process, you can be sure that the same Unix user that
145102
checked out your application also installed the third-party code your application needs.

0 commit comments

Comments
 (0)