mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 17:26:26 +01:00
Add automatic translations compilation
This commit is contained in:
parent
a97070eb2e
commit
511a4b3626
4
make.sh
4
make.sh
@ -34,10 +34,12 @@ translations () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start () {
|
start () {
|
||||||
|
pybabel compile -d partitioncloud/translations/
|
||||||
flask run --port=$PORT
|
flask run --port=$PORT
|
||||||
}
|
}
|
||||||
|
|
||||||
production () {
|
production () {
|
||||||
|
pybabel compile -d partitioncloud/translations/
|
||||||
FLASK_APP=partitioncloud /usr/bin/gunicorn \
|
FLASK_APP=partitioncloud /usr/bin/gunicorn \
|
||||||
wsgi:app \
|
wsgi:app \
|
||||||
--bind 0.0.0.0:$PORT
|
--bind 0.0.0.0:$PORT
|
||||||
@ -56,9 +58,9 @@ usage () {
|
|||||||
echo -e "\t$0 start"
|
echo -e "\t$0 start"
|
||||||
echo -e "\t$0 production"
|
echo -e "\t$0 production"
|
||||||
echo -e "\t$0 translations"
|
echo -e "\t$0 translations"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RESULT=$(type "$1")
|
RESULT=$(type "$1")
|
||||||
if [[ $1 && $RESULT = *"is a"*"function"* || $RESULT == *"est une fonction"* ]]; then
|
if [[ $1 && $RESULT = *"is a"*"function"* || $RESULT == *"est une fonction"* ]]; then
|
||||||
# Import config
|
# Import config
|
||||||
|
Loading…
Reference in New Issue
Block a user