# Set the domain or ip address of the remote server. set :domain, 'yourdomain'
# Set the folder of the remote server where Mina will deploy your app. set :deploy_to, 'path/to/directory'
# Set a link to the repository. Better git protocol. set :repository, 'git@...'
# Set the name of a branch you plan to deploy as default master. set :branch, 'master'
# Fill in the names of the files and directories that will be symlinks to the shared directory. # All folders will be created automatically on Mina Setup. # Don't forget to add a path to the uploads folder if you are using Dragonfly or Carrierwaves. # Otherwise, you will lose your uploads on each deploy. set :shared_dirs, fetch(:shared_dirs, []).push('log', 'tmp/pids', 'tmp/sockets', 'public/uploads') set :shared_files, fetch(:shared_files, []).push('config/database.yml', 'config/secrets.yml', 'config/puma.rb')
# Username of ssh for access to the remote server. set :user, 'root'
# This is not a required field, you can use it to set an app name for easy recognition. set :application_name, 'MyApp'
# Set ruby version. If you have RVM installed globally, you'll also need to set an RVM path, # like set:rvm_use_path, '/usr/local/rvm/scripts/rvm'. # You can find the RVM location with rvm info command. task :environmentdo invoke :'rvm:use', 'ruby-2.5.1@default' end
By default, Mina will create all folders mentioned in shared_dirs and shared_files.
You deploy section in deploy.rb should look like this: