Skip to content

MayMeow/meowblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MeowBlog

Instalation

Application inside container runs under www-data:www-data user.

sudo chown -R www-data:www-data data/

Create security key

docker compose -f docker-compose.prod.yml run --rm app sh -c "php bin/cake.php generate_security_key"

Create Database

docker compose -f docker-compose.prod.yml run --rm app sh -c "php bin/cake.php migrations migrate"

Start Application

docker compose -f docker-compose.dev.yml up -d

More information

Development

Requirements

  • Docker or Docker Desktop
  • Lando
  • PHP 8.1 and up
  • Node
  • Yarn

For backend

lando start
lando composer install
lando php bin/cake.php migrations migrate

For frontend

fnm install # to install node - optionally
yarn install
yarn build

Source codes for frontend are stored in webroot_src, currently only styles which is slightly modified picocss.

‼️ After successfull build you need to change css path in templates/layout/default.php. (not ideal but for now it is like it is).

Application build is located in webroot/app.