Set up overmind to start the server and docker-compose
Used 47 times
T
TobiasBales
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/VAjsMb"
Template Source
Review the code before running this template on your machine.
create_file 'Procfile' do <<~EOF
web: bundle exec puma -C config/puma.rb
EOF
end
create_file 'Procfile.dev' do <<~EOF
web: rails server
webpacker: ./bin/webpack-dev-server
dependencies: docker-compose up
EOF
end
create_file '.overmind.env' do <<~EOF
OVERMIND_PROCFILE=Procfile.dev
EOF
end