The server environment is not easy to develop on, it is not necessarily easy to view the effects and connect to the http port either (relatively). This aims to solve the problem, by reducing the need to connect to pascal at all, except for deployments.
- Build (once)
- On a development session's start, run the image
- Make changes and see them live at
localhost:80(hot reloading) - Deploy on dev session end (if needed of course)
Server is a debian with apache2 installed with plugins: cgi, userdir, rewrite, php8.2, and wsgi. Check Dockerfile for details.
docker build --build-arg USERNAME=user -t pascal-dev .docker run --rm -it -p 80:80 -v $(pwd)/home:/home/user pascal-devREMOTE_USER=name REMOTE_HOST=pascal.somewhere.pl ./deploy.sh