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'
end
And then simply execute:
$ bundle install
Generate a config file (optional):
$ bundle exec ecs_rails_console -g
This will generate a config/ecs_rails_console.yml
file, which you can customize.
For rails console
:
$ bundle exec ecs_rails_console
For rails db:migrate:status
:
$ bundle exec ecs_rails_console bin/rails db:migrate:status
For 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 version
Bug 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.