8000 Add default example environment file by marvindurot · Pull Request #939 · wintercms/winter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add default example environment file #939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

marvindurot
Copy link
Contributor

This PR adds an example environment file which is copied to .env file on Composer project installation.
This is especially useful when you want to start with a dockerized local development environment.

It avoid calling the php artisan winter:env command after a fresh installation which adds unnecessary double quotes and make Laravel Sail installation incompatible.

See: https://github.com/laravel/sail/blob/1.x/src/Console/Concerns/InteractsWithDockerComposeServices.php#L118

I'm currently working on a serverless function that generates a bash script to install WinterCMS with Laravel Sail (like Laravel does : https://laravel.com/docs/10.x/installation#laravel-and-docker).

The aim is to set up a standardized dockerized environment quickly and without dependencies (except for Docker).

@LukeTowers
Copy link
Member

Arguably a PR could be made to Sail to use our Config Writer package to edit those .env files in a safer and more robust way 😉

@LukeTowers LukeTowers requested a review from jaxwilko July 6, 2023 19:43
@marvindurot
Copy link
Contributor Author
marvindurot commented Jul 7, 2023

Arguably a PR could be made to Sail to use our Config Writer package to edit those .env files in a safer and more robust way 😉

That's an exellent idea ! I will make the PR this weekend 😉

@LukeTowers LukeTowers added Status: Completed maintenance PRs that fix bugs, are translation changes or make only minor changes labels Jul 7, 2023
@LukeTowers LukeTowers added this to the v1.2.3 milestone Jul 7, 2023
@LukeTowers LukeTowers merged commit 40dc5cb into wintercms:develop Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PRs that fix bugs, are translation changes or make only minor changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0