Commit 40acecbc authored by Henrique Sousa's avatar Henrique Sousa

Changes on deploy tasks

parent dd3600f2
Pipeline #45472489 failed with stage
in 1 minute and 4 seconds
......@@ -61,7 +61,5 @@ end
group :development, :test do
gem "factory_bot_rails"
gem 'mina', require: false
gem 'mina-puma', require: false, github: 'untitledkingdom/mina-puma'
gem 'mina-nginx', :require => false
gem "spring"
end
......@@ -8,14 +8,6 @@ GIT
activemodel-serializers-xml (~> 1.0)
activesupport (>= 5.0, < 7)
GIT
remote: git://github.com/untitledkingdom/mina-puma.git
revision: f41052e0b4c0f210b9d004b79602670dca0eff27
specs:
mina-puma (1.1.0)
mina (~> 1.2.0)
puma (>= 2.13)
GIT
remote: https://github.com/activeadmin/inherited_resources
revision: 652686148f554fb9ce0ebee5d857b3d3decc0272
......@@ -179,8 +171,6 @@ GEM
mina (1.2.3)
open4 (~> 1.3.4)
rake
mina-nginx (0.0.3)
mina (~> 1)
mini_magick (4.8.0)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
......@@ -365,8 +355,6 @@ DEPENDENCIES
jquery-ui-rails (= 5.0.5)
migration_data (~> 0.2.1)
mina
mina-nginx
mina-puma!
mini_magick (~> 4.3)
octokit (~> 4.0)
omniauth-facebook
......
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (https://rvm.io)
require 'mina/rails'
# Basic settings:
# domain - The hostname to SSH to.
......@@ -10,18 +10,20 @@ require 'mina/rvm' # for rvm support. (https://rvm.io)
set :application_name, 'flosscoach'
set :application, fetch(:application_name)
set :domain, 'flosscoach.com'
set :user, fetch(:application_name)
set :deploy_to, "/home/#{fetch(:user)}/app"
set :repository, 'https://gitlab.com/flosscoach/flosscoach.git'
set :branch, 'master'
set :rvm_use_path, '/home/flosscoach/.rvm/scripts/rvm'
set :current_path, '/home/flosscoach/app/current'
set :domain, 'flosscoach.com'
set :repository, 'https://gitlab.com/flosscoach/flosscoach.git'
set :branch, 'master'
set :deploy_to, "/home/#{fetch(:user)}/app"
# Optional settings:
set :user, 'flosscoach' # Username in the server to SSH to.
set :port, '22' # SSH port number.
set :forward_agent, true # SSH forward_agent.
#set :user, 'flosscoach' # Username in the server to SSH to.
#set :port, '22' # SSH port number.
#set :forward_agent, true # SSH forward_agent.
# Shared dirs and files will be symlinked into the app-folder by the 'deploy:link_shared_paths' step.
# Some plugins already add folders to shared_dirs like `mina/rails` add `public/assets`, `vendor/bundle` and many more
......@@ -34,10 +36,10 @@ set :shared_dirs, fetch(:shared_dirs, []).push('log', 'tmp/pids', 'tmp/sockets')
# This task is the environment that is loaded for all remote run commands, such as
# `mina deploy` or `mina rake`.
task :remote_environment do
#ruby_version = File.read('.ruby-version').strip
#raise "Couldn't determine Ruby version: Do you have a file .ruby-version in your project root?" if ruby_version.empty?
ruby_version = File.read('.ruby-version').strip
raise "Couldn't determine Ruby version: Do you have a file .ruby-version in your project root?" if ruby_version.empty?
#invoke :'rvm:use', ruby_version
invoke :'rvm:use', ruby_version
end
# Put any custom commands you need to run at setup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment