- Install Lando
- Create new folder:
mkdir [name]
and go to this directorycd [name]
- Create Lando config file: (
vim .lando.yml
) and paste content below and save:
name: firefly
recipe: lamp
config:
php: '8.2'
webroot: firefly/public
xdebug: false
database: postgres
tooling:
artisan:
service: appserver
description: artisan command
cmd: php /app/firefly/artisan
init-firefly:
service: appserver
description: setup firefly
cmd: composer create-project grumpydictator/firefly-iii --no-dev --prefer-dist firefly 5.7.18
services:
appserver:
build_as_root:
- apt-get update -y
- apt-get install locales locales-all -y
- Start Lando
lando start
- Setup Firefly application with
lando init-firefly
- Setup up Firefly database access by editing
firefly/.env
.
DB_CONNECTION=pgsql
DB_HOST=database
DB_PORT=5432
DB_DATABASE=lamp
DB_USERNAME=postgres
DB_PASSWORD=
- Initialize the database
lando artisan migrate:refresh --seed
lando artisan firefly-iii:upgrade-database
lando artisan passport:install
- That's it. Go to http://firefly.lndo.site
SOME TIPS:
Depending on your setup: hosts file might need update to resolve firefly.lndo.site address
Firefly version is set in .lando.yml. Current stable is 5.7.18
so search for it to change/update
You can access database via lando psql