How to Run
- To start Apache, PHP-FPM, and Postgres in the background, run
devbox service start
. - Once the services are running, you can start your shell using
devbox shell
. This will also initialize your database by runninginitdb
in the init hook. - Create the database and load the test data by using
devbox run create_db
. - You can now test the app using
localhost:8080
to hit the Apache Server. If you want Apache to listen on a different port, you can change theHTTPD_PORT
environment variable in the Devbox init_hook.
How to Recreate this Example
- Create a new project with
devbox init
- Add the packages using the command below. Installing the packages with
devbox add
will ensure that the plugins are activated: