- Use only what you need from the
Gemfileand copy/paste it to your ownGemfile. Basically it would be gems related to Capistrano, something like these ones inside the development group of your Gemfilegem 'capistrano', '~> 3.10', require: false gem 'capistrano-rbenv', '~> 2.2' gem 'capistrano-rails', '~> 1.4', require: false gem 'capistrano-bundler', '>= 1.1.0' gem 'capistrano3-puma', github: "seuros/capistrano-puma" gem 'ed25519', '>= 1.2', '< 2.0' gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0'
- Still in the
Gemfile, make sure to use the same version as this template for the puma gem. Version 5 is installed by default in new application, so it should be changed manually in your application.gem 'puma', '~> 4.3.11'
- From this repository, copy/paste those files to the same path of your existing application:
Capfile,/config/deploy.rb,/config/deploy/production.rb - The
Capfilefile needs to be at the root of your project - Inside the file
/config/deploy.rb, update your application name and your repository url. Use the SSH link as usual, not the HTTPS - Inside the file
/config/deploy/production.rb, update theappname on line 11 - If on Rails 6 or higher, in
config/environments/development.rbof your own application, add the following lineconfig.hosts << "<YOUR-DOMAIN-NAME>"
- Finally, make sure to add
CodeboxxGrading,MathieuHoudeand your own coaches as collaborators on your repo. Your repo should now be set to private
-
Notifications
You must be signed in to change notification settings - Fork 6
CodeBoxxTechSchool/capistrano
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Files and settings to use capistrano in odyssey program
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published