This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi I upgraded octobercms v1 to v2 (2.1.16). In v1, i was using command for syncing DB templates "artisan theme:sync" In 2.1.16, this command disappeared. Its very important feature for us. It is planed to add this command back to OctoberCms v2 ? Thank you
Hi there
In v2 the command is called theme:copy instead, however, it does not function exactly the same. Send us an email and detail how you were using the sync command and we can possibly reintroduce the functionality.
Thanks!
My use case is: On production environment, we have multiple server instance. We used LoadBalancer. Because of it, we used DB templates. Admin create new StaticPage, it is stored directly into DB. When we prepare production deploy, we sync templates from DB -> filesystem. Then, we add all static pages into git. This is our use case.
When you sync from database to file system do you want to delete the objects in the database? Would this cause a temporary rollback?
Last updated
I dont understand, what are you asking. I only want to use the same functionality, which was in OctoberCms v1 "artisan theme:sync" Sync template from FILE -> DB or DB -> FILE On V1, when i use sync DB->FILE, templates are still in DB.
This functionality has been included in v2.1.17
If using database-driven themes, you may sync the database changes to the filesystem with the --import-db
option.
php artisan theme:copy demo --import-db
To delete all the database templates at the same time, use the --purge-db
option.
php artisan theme:copy demo --import-db --purge-db
1-8 of 8