mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
script to run a rails command with ease
This commit is contained in:
parent
c8c2300dd2
commit
7251298334
@ -5,6 +5,7 @@
|
|||||||
- Prevent the worker from crashing if OpenLab is not reachable in dev
|
- Prevent the worker from crashing if OpenLab is not reachable in dev
|
||||||
- Allow setting multiple themes for a single event
|
- Allow setting multiple themes for a single event
|
||||||
- Increased the width of the input field for the prices of the events
|
- 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: 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 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
|
- Fix a bug: the event themes are not kept when editing the event again
|
||||||
|
17
scripts/run.sh
Executable file
17
scripts/run.sh
Executable 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 "$@"
|
Loading…
x
Reference in New Issue
Block a user