Skip to content

Instantly share code, notes, and snippets.

@skylock
Last active January 31, 2020 08:00
Show Gist options
  • Save skylock/c16eb38d6199a57213978979c46b3c8d to your computer and use it in GitHub Desktop.
Save skylock/c16eb38d6199a57213978979c46b3c8d to your computer and use it in GitHub Desktop.
aws ecs instance execute ruby container db reset

Add current user to docker group

sudo usermod -aG docker sssm-user
export API_CONTAINER_NAME=$(docker ps -a --filter status=running --filter  publish=3000 --format '{{.Names}}')
docker exec $API_CONTAINER_NAME bundle exec rails db:create db:schema:load db:seed:e2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment