Skip to content

MayMeow/meowblog

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.