webreinvent / vaahcms

VaahCMS is a laravel based open-source web application development platform shipped with a headless content management system (CMS).
https://vaah.dev/cms
MIT License
134 stars 22 forks source link

Unable to create instance with docker / laravel sail #69

Closed MisterMarlu closed 1 year ago

MisterMarlu commented 2 years ago

Hi, seems like there is a problem when using laravel/sail to start the cms in a docker container. There is a CSRF token mismatch. Bildschirmfoto vom 2022-08-04 12-30-43

To reproduce it, here are my steps (working on Ubuntu 20.04):

npx vaah cms:install cd vaahcms

Changing db connection in .env file

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=
DB_DATABASE=test
DB_USERNAME=test
DB_PASSWORD=test

./vendor/bin/sail up

In the installer I can connect to the database but when I click "Save & Next" the error is thrown (419).

themodernpk commented 2 years ago

@MisterMarlu

You don't need to do any changes in .env files. There is a wizard to set up the cms, all you need to do is visit <domain or localhost>/public/vaahcms/setup, and cms will automatically generate the required env files.

MisterMarlu commented 2 years ago

@themodernpk to create an empty db in the mysql container sail need a db name, user and password and using environment variables for this: Bildschirmfoto vom 2022-08-04 13-07-13

But even without editing the .env file the error with the CSRF token missmatch will appear.

The steps above without editing the .env file there is no db in the mysql container. Anyway, with laravel/sail I cannot install the cms :(

themodernpk commented 2 years ago

@MisterMarlu if you can join Slack https://join.slack.com/t/vaah/shared_invite/zt-wgvx75rr-tuAhGtjRweCR~DEVSTFcSQ , I can help you out.

themodernpk commented 2 years ago

@MisterMarlu as per our session, we found out that during setup wizard it generates a .env. file which was causing 419 error. We'll try to fix it in the next version.