Don't know how to build task 'remote_environment'
Opened this issue · 0 comments
aruprakshit commented
Don't know how to build task 'remote_environment' (See the list of available tasks with `mina --tasks`)
/Users/aruprakshit/zeitio/docking/config/deploy.rb:54:in `block (2 levels) in <top (required)>'
/Users/aruprakshit/zeitio/docking/config/deploy.rb:52:in `block in <top (required)>'
/Users/aruprakshit/.rbenv/versions/2.6.6/bin/mina:23:in `load'
/Users/aruprakshit/.rbenv/versions/2.6.6/bin/mina:23:in `<top (required)>'
/Users/aruprakshit/.rbenv/versions/2.6.6/bin/bundle:23:in `load'
/Users/aruprakshit/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
Tasks: TOP => sidekiq:quiet
(See full trace by running task with --trace)
Code:
require 'mina/multistage'
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/puma'
require 'mina/rbenv'
require 'mina_sidekiq/tasks'
esc "Deploys the current version to the server."
task deploy: :environment do
deploy do
invoke :'git:clone'
invoke :'sidekiq:quiet'
invoke :'deploy:link_shared_paths'
invoke :'bundle:install'
# invoke :'rails:db_create' # need to remove after deploy
invoke :'rails:db_migrate'
invoke :'rails:assets_precompile'
invoke :'deploy:cleanup'
on :launch do
command "mkdir -p #{fetch(:current_path)}/backend/ruby/tmp/"
command "touch #{fetch(:current_path)}/backend/ruby/tmp/restart.txt"
invoke :'sidekiq:restart'
end
end
end