A simple tool to run rails console or other Rails CLI commands in AWS ECS Fargate.
Add the following lines to your Rails application's Gemfile:
group :development do
gem 'ecs-rails-console'
endAnd then simply execute:
$ bundle installGenerate a config file (optional):
$ bundle exec ecs_rails_console -gThis will generate a config/ecs_rails_console.yml file, which you can customize.
For rails console:
$ bundle exec ecs_rails_consoleFor rails db:migrate:status:
$ bundle exec ecs_rails_console bin/rails db:migrate:statusFor help, run:
$ bundle exec ecs_rails_console -h
Usage: ecs_rails_console [options]
-g, --generate-config Generate config file
-h, --help Display this help
-e, --environment=ENVIRONMENT Rails environment
-v, --version Display versionBug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.