-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Composer create-project not working on Windows #1288
Comments
Do you have SQLite support on your environment? |
What OS are you using? |
Windows |
I don't think so |
You're paying for a remote server that's running Windows? Windows is really only supported for local development, running it as a production server for a PHP application is a bit wild... |
@AIC-BV I had the same problem with Windows Os. I'm always forced to run a second installation with the --force option ( It seems that composer on Windows can't run interactive commands. So what have been put in place to simplify WinterCMS installation for Linux and Mac Os users, complicates it for the minority of Windows users. |
Oh no the remote server is Linux |
You are right, manually doing the |
If I recall it correctly, you just install some things and then in cmdline/powershell I run I used to run XAMPP but its seems to be no longer needed (I connect to a hosted DB instead of a local one) |
For my Windows computers, I have both WSL and standalone PHP. Using
> @php artisan winter:mirror public --relative
Destination: P:\_Sites\_Labs\test-composer-install\public
- Mirroring: .htaccess
In WinterMirror.php line 208:
symlink(): Permission denied
Script @php artisan winter:mirror public --relative handling the post-create-project-cmd event returned with error code 1 |
@LukeTowers ... Installing wintercms/winter (dev-develop 85362e7)
Work's both on Windows and in WSL. What would be nice, is having the credits for logging into the site administration in the installation summary.
@AIC-BV on Windows OS, I can't choose which type of database to use too. For your issue, do you have |
@damsfx Thanks for the clear answer. |
But as @damsfx said the admin password/backend url/... are not shown so it would be a very handy summary indeed |
SQLite databases are contained within a single file on your filesystem, for WinterCMS at If the project have a lot of queries per page (access to models like in online shop), I always choose a MariaDB database. Please note that this point of view is neither scientific nor supported by extensive performance tests, it's just a matter of habit. |
I see! |
SQLite works perfectly fine for a read-heavy site, it only really becomes a potential issue if you have multiple processes trying to write to it at the same time or if you have truly insane traffic or want to scale across multiple servers. Take a look at https://stackoverflow.com/a/265607 for more information. Long and short of it, most people will be just fine using SQLite which is why it's the default. Even if you're not using it as your main database driver however it's still highly recommended to have the extension installed and active because certain features of Winter make use of SQLite (the ArraySource database trait as one example). @damsfx as far as showing the information for accessing the backend in the installation summary; that might be a limitation in how those commands are run on Windows through Composer. If you run @jaxwilko is this something that might be fixed with the refactor to the UpdateManager? |
Side note @damsfx & @AIC-BV, do you know about the |
Yes, of course! |
php artisan winter:down --force && php artisan migrate
...
INFO Migration complete.
INFO \Backend\Database\Seeds\DatabaseSeeder reported the following:
- The following password has been automatically generated for the "admin" account: ywh3enVGoVHbIOjyEyjlR7 |
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
I am trying to set up a new sideproject using the following command from the WinterCMS website:
composer create-project wintercms/winter my-project
This works untill the command runs
php artisan winter:install
There is no option to select a database type and errors will be spammed untill it crashes.
Operation System: Windows
PHP version: PHP 8.2.11 (cli) (built: Sep 26 2023 15:25:14) (NTS Visual C++ 2019 x64)
Steps to replicate
composer create-project wintercms/winter my-project
Workaround
No response
The text was updated successfully, but these errors were encountered: