Hello
I would like to be able to install the CMS completely automatically. The demo/blog data should not be installed.
This would allow us to offer the setup directly from the Control Panel.
Can composer create project do this?
Thanks!
Hello
I would like to be able to install the CMS completely automatically. The demo/blog data should not be installed.
This would allow us to offer the setup directly from the Control Panel.
Can composer create project do this?
Thanks!
Yes, this is possible. Try the following:
Run: composer create-project october/october ./octobercms
Navigate to the octobercms directory
Update the .env file with the database configuration
Run php artisan october:migrate
Run php artisan tailor:migrate (optional)
Run php artisan theme:seed demo (optional)
Open http://localhost/admin to create an admin account
You can also combine the three artisan commands with the following (this will seed the demo theme):
php artisan october:install --no-interaction
Hi @daftspunk
Thanks for the answer.
composer create-project october/october ./ correct? Usualy the CMS goes in the root folder of the webspace.Yeah create-project in dot (.) is fine too.
Point 5 is the standard install with the demo theme, etc.
It’s easy enough to remove all that stuff with tailor:prune but the manual process is best if you intentionally don’t want the demo theme/content at all.
There is also october:fresh which deletes the demo theme, we could get it to also call tailor:prune.
However --no-interaction is purely for the happy (non-custom) path.
Why not make it easy and add a switch like eg. -nodemo to not install any demo data?
The same for the UI-based setup: Add a checkbox to disable the installation of any demo stuff.
Why wasting time to remove stuff manually?
Thanks
Because then it would be functionally identical to
php artisan october:migrate
Hi
I don’t understand your answer. What exactly does php artisan october:migrate do?
That doesn’t look like an installation, but rather a migration. What is being migrated and why?
So I’d like to ask again: What needs to be done to ensure that neither demo data, tailoring tools, nor the theme are installed?
thanks