1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-17 11:54:22 +01:00

script to run a rails command with ease

This commit is contained in:
Sylvain 2021-05-14 15:42:19 +02:00
parent c8c2300dd2
commit 7251298334
2 changed files with 18 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- Prevent the worker from crashing if OpenLab is not reachable in dev
- Allow setting multiple themes for a single event
- Increased the width of the input field for the prices of the events
- Script to run a rails command with ease in production (`run.fab.mn`)
- Fix a bug: invalid currency in notifications for locales with region (eg. fr-CM)
- Fix a bug: the notification sent to the project author when a collaborator has confirmed his participation is not sent
- Fix a bug: the event themes are not kept when editing the event again

17
scripts/run.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
yq() {
docker run --rm -i -v "${PWD}:/workdir" mikefarah/yq:4 "$@"
}
config() {
SERVICE="$(yq eval '.services.*.image | select(. == "sleede/fab-manager*") | path | .[-2]' docker-compose.yml)"
}
run()
{
config
docker-compose exec "$SERVICE" bundle exec rails "${@:-c}"
}
run "$@"