mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
Merge branch 'dev' for release 4.7.5
This commit is contained in:
commit
f8c9f35900
@ -1,5 +1,8 @@
|
|||||||
# Changelog Fab-manager
|
# Changelog Fab-manager
|
||||||
|
|
||||||
|
## v4.7.5 2021 March 08
|
||||||
|
- Fix a bug: unable to compile the assets during the upgrade, if the env file has some whitespaces around the equal sign
|
||||||
|
|
||||||
## v4.7.4 2021 March 08
|
## v4.7.4 2021 March 08
|
||||||
- Show remaining training credits in the dashboard
|
- Show remaining training credits in the dashboard
|
||||||
- Allow writing short rich descriptions for each subscription plan
|
- Allow writing short rich descriptions for each subscription plan
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fab-manager",
|
"name": "fab-manager",
|
||||||
"version": "4.7.4",
|
"version": "4.7.5",
|
||||||
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
|
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"fablab",
|
"fablab",
|
||||||
|
@ -95,6 +95,12 @@ add_environments()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clean_env_file()
|
||||||
|
{
|
||||||
|
# docker run --env-file does not support whitespaces in the environment variables so we must clean the file
|
||||||
|
sed -ri 's/^([A-Z0-9_]+)\s*=\s*(.*)$/\1=\2/g' ./config/env
|
||||||
|
}
|
||||||
|
|
||||||
compile_assets()
|
compile_assets()
|
||||||
{
|
{
|
||||||
IMAGE=$(yq eval '.services.*.image | select(. == "sleede/fab-manager*")' docker-compose.yml)
|
IMAGE=$(yq eval '.services.*.image | select(. == "sleede/fab-manager*")' docker-compose.yml)
|
||||||
@ -106,6 +112,7 @@ compile_assets()
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PG_NET_ID=$(docker inspect "$PG_ID" -f "{{json .NetworkSettings.Networks }}" | jq -r '.[] .NetworkID')
|
PG_NET_ID=$(docker inspect "$PG_ID" -f "{{json .NetworkSettings.Networks }}" | jq -r '.[] .NetworkID')
|
||||||
|
clean_env_file
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
docker run --rm --env-file ./config/env ${ENV_ARGS[@]} --link "$PG_ID" --net "$PG_NET_ID" -v "${PWD}/public/new_packs:/usr/src/app/public/packs" "$IMAGE" bundle exec rake assets:precompile
|
docker run --rm --env-file ./config/env ${ENV_ARGS[@]} --link "$PG_ID" --net "$PG_NET_ID" -v "${PWD}/public/new_packs:/usr/src/app/public/packs" "$IMAGE" bundle exec rake assets:precompile
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
Loading…
x
Reference in New Issue
Block a user