Skip to content

php artisan winter:env config conversion breaks in certain cases #335

@AIC-BV

Description

@AIC-BV

Winter CMS Build

1.1

PHP Version

8.0

Database engine

MySQL/MariaDB

Plugins installed

Winter.Sitemap, Winter.Pages, Winter.TinyPNG, Winter.Translate

Issue description

I want a local database and a live database.
When running php artisan winter:env in my CMDline, the website stops working and the pages return '500 internal server error'.

Documentation: https://wintercms.com/docs/setup/configuration#dotenv-configuration

Steps to replicate

Run the following command in the CMD: php artisan winter:env

Workaround

No response

Any further details?

I looked at the changes in my files, using Visual Studio Code - Source Control, and this was broken. I fixed it but I am still getting 500 error.

Screenshot_3

It is now: 'database' => env('DB_DATEBASE', base_path('storage/database.sqlite')),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions