2023-07-02 23:42:24 -04:00
|
|
|
require 'bundler/setup'
|
|
|
|
|
2023-07-03 23:02:25 -04:00
|
|
|
task :setup do
|
|
|
|
# Set bundle to install gems to local vendor path
|
|
|
|
system("bundle config set --local path 'vendor/bundle'")
|
|
|
|
# Install gems
|
|
|
|
system("bundle install")
|
|
|
|
end
|
|
|
|
|
2023-07-02 23:42:24 -04:00
|
|
|
namespace :server do
|
|
|
|
task :start do
|
2023-07-03 23:02:25 -04:00
|
|
|
ENV['APP_ENV'] = 'production'
|
2023-07-02 23:42:24 -04:00
|
|
|
system("puma")
|
|
|
|
end
|
|
|
|
|
2023-07-03 23:02:25 -04:00
|
|
|
task :dev do
|
|
|
|
system('rerun --quiet --dir="src/" puma')
|
|
|
|
end
|
|
|
|
end
|