Content of the c2dl.info website(s)
-
https://c2dl.info page root:
/src/c2dl/public
-
/src/c2dl/.env
required to run Laravel framework.
Used Laravel version: 11.x (see also Support Policy)
-
PHP: 8.3 (see also: Supported Versions)
-
Composer (latest recommended)
-
NodeJS (version 20+ recommended - see Release Schedule)
-
Database (see also: Supported by Laravel)
-
MariaDB (10.3 minimal, 10.11+ recommended - see also Release Schedule)
-
[OR] MySQL (5.7 minimal, 8.0 recommended - see also Release history
-
[OR] PostgreSQL (10.0 minimal, 13.0+ recommended - see also Versioning Policy)
-
[OR] SQLite (3.35.0 minimal, latest recommended)
-
[OR] SQL Server (2017 minimal see also Services Lifecycle)
-
-
Navigate to directory /src/c2dl
-
Run
composer install
to install all php dependencies and set up laravel -
Run
npm install
to install vite for building all assets -
Build the assets
-
Run
npm run dev
for the dev server that updates assets live -
[OR]
npm run build
for static assets used in production
-
-
Create
/src/c2dl/.env
based on /src/c2dl/.env.example [OR] /docker/conf/env/dev_env -
Run
php artisan key:generate
to add the app key to the .env file -
Create Database
-
Run
php artisan migrate
for setting up the database -
[OR] Run
php artisan migrate --seed
for setting up the database and seed it
-
URL | Service |
---|---|
Website |
|
PHP-Infopage |
|
Ping, usable for health monitoring |
|
Adminer DB management UI |
[OR]:
-
Copy /docker/conf/env/dev_env to
/src/c2dl/.env
-
Run
docker compose up -d --wait
-
Wait for c2dl-node (exits when finished), c2dl-composer (exits when finished) and c2dl-mysql (keeps running) to finish/start
-
Set up the app key by running
docker exec -it c2dl-php sh -c "php artisan key:generate"
-
Create Database
-
Run
docker exec -it c2dl-php sh -c "php artisan migrate"
for setting up the database -
[OR] Run
docker exec -it c2dl-php sh -c "php artisan migrate --seed"
for setting up the database and seed it
-
-
Stops and removes container:
-
c2dl-mysql
-
c2dl-mariadb
-
c2dl-adminer
-
c2dl-php
-
c2dl-composer
-
c2dl-apache
-
c2dl-node
-
-
Removes networks
-
Removes images:
-
docker-php (old php build with default name)
-
c2dl-php
-
mariadb (10.5 / 10.11)
-
mysql (old database - 5.7.28)
-
composer/composer
-
httpd
-
node
-
-
Prunes docker build cache
-
Remove asset builds in
/src/c2dl/public/build
-
Removes composer vendor folder (
/src/c2dl/vendor
) -
Cleans all docker logs at
.run/logs
-
Removes database data [IF REQUESTED] (located at
.run/mysql
)