Skip to content

Latest commit

 

History

History
25 lines (24 loc) · 1.56 KB

File metadata and controls

25 lines (24 loc) · 1.56 KB

How-To

  1. Use only what you need from the Gemfile and copy/paste it to your own Gemfile. Basically it would be gems related to Capistrano, something like these ones inside the development group of your Gemfile
      gem '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'
  2. 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'
  3. From this repository, copy/paste those files to the same path of your existing application: Capfile, /config/deploy.rb, /config/deploy/production.rb
  4. The Capfile file needs to be at the root of your project
  5. Inside the file /config/deploy.rb, update your application name and your repository url. Use the SSH link as usual, not the HTTPS
  6. Inside the file /config/deploy/production.rb, update the app name on line 11
  7. If on Rails 6 or higher, in config/environments/development.rb of your own application, add the following line
    config.hosts << "<YOUR-DOMAIN-NAME>"
  8. Finally, make sure to add CodeboxxGrading, MathieuHoude and your own coaches as collaborators on your repo. Your repo should now be set to private