Première version rudimentaire :
- prise en charge du français - différentes URLs - templates vides
This commit is contained in:
		@@ -5,7 +5,7 @@ WORKDIR /usr/src/app
 | 
			
		||||
 | 
			
		||||
RUN --mount=type=cache,target=/var/cache/apt \
 | 
			
		||||
	apt-get update && \
 | 
			
		||||
    apt-get install --no-install-recommends -y build-essential libpq-dev \
 | 
			
		||||
    apt-get install --no-install-recommends -y build-essential libpq-dev gettext \
 | 
			
		||||
    && rm -rf /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,10 +4,12 @@
 | 
			
		||||
if [ "$APP_ENV" != "prod" ]; then
 | 
			
		||||
    python manage.py makemigrations --noinput
 | 
			
		||||
    python manage.py migrate --noinput
 | 
			
		||||
    python manage.py compilemessages
 | 
			
		||||
    python manage.py runserver "$APP_HOST":"$APP_PORT"
 | 
			
		||||
else
 | 
			
		||||
    python manage.py makemigrations --noinput
 | 
			
		||||
    python manage.py migrate --noinput
 | 
			
		||||
    python manage.py collectstatic --noinput
 | 
			
		||||
    python manage.py compilemessages
 | 
			
		||||
    gunicorn "$APP_NAME".wsgi:application --bind "$APP_HOST":"$APP_PORT" --workers 3 --log-level=info
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user