mirror of
https://github.com/suitenumerique/drive.git
synced 2026-09-28 12:35:15 +02:00
This commit, with contributions from Sylvain Grizard, adds support for PaaS deployment platforms such as Scalingo, which build the project on commit. It uses the La Suite Buildpack, which compiles the frontend first as static files, and serves them along with the backend with nginx.
16 lines
355 B
Bash
16 lines
355 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit # always exit on error
|
|
set -o pipefail # don't ignore exit codes when piping output
|
|
|
|
echo "-----> Running post-frontend script"
|
|
|
|
# Move the frontend build to the nginx root and clean up
|
|
mkdir -p build/
|
|
mv src/frontend/apps/drive/out build/frontend-out
|
|
|
|
mv src/backend/* ./
|
|
mv src/nginx/* ./
|
|
|
|
echo "3.13" > .python-version
|