Define the .env file (start pby coping the .env.dist: cp .env.dist .env
)
To build the webpack project (js, css, ...):
npm install
npm run dev
npm run prod
npm run watch
Optional: Update the images:
docker compose pull
Start the project:
docker compose up -d --force-recreate --remove-orphans
Local skeleton development:
docker compose exec skeleton preview emsch:local:pull
docker compose exec skeleton preview emsch:local:status
docker compose exec skeleton preview emsch:local:login
docker compose exec skeleton preview emsch:local:push
Useful urls:
You will have to accept self-signed certificate
- Traefik: routing app
- Preview URLs:
- Live URLs:
Useful commands:
docker compose exec skeleton bash
You enter in the skeleton pod:preview
: run the symfony command in the corresponding contextzz_live
: run the symfony command in the corresponding contextpreview c:c
: clear the cachepreview debug:route
: list the template's routescurl -v -s --header "Host: preview.cv.localhost" http://localhost:9000 1> /dev/null
: test the config
docker compose down
Turn off the podsdocker compose ps
Pod's statusdocker compose logs -f
logs- Test the live urls/config with docker:
curl -v -s --header "Host: mathieu.dekeyzer.net" http://localhost:9000 1> /dev/null