Skip to content

php-school/phpschool.io

 
 

Repository files navigation

Install

You will need composer, gulp and docker.

composer install
npm install
cp .env.dist .env
docker-compose build

Run

docker-compose up -d

Create DB Scheme

docker compose exec php composer app:db:update

Generate Blog

docker compose exec php composer app:gen:blog

Then navigate to http://localhost !

Pages are cached on first view. If you need to clear the cache, run docker compose exec php composer app:cc.

Build CSS

gulp sass

Build SVG's

gulp svg

View cache keys

docker-compose exec redis redis-cli keys '*'

Clear cache

docker compose exec php composer app:cc

Deploy

You will need capistrano installed and SSH access to the production server.

cap production deploy

Production deploy requisites

Letsencrypt certs should be setup and located in /etc/letsencrypt

Make sure .env file exists in shared folder. You can use env.dist as an example.