2024-12-10 16:08:50 +01:00
2024-12-10 15:08:16 +01:00
2024-12-18 16:53:34 +01:00
2024-12-10 15:08:16 +01:00
2024-12-10 15:08:16 +01:00
2024-12-10 16:05:19 +01:00
2024-12-21 16:12:23 +01:00

This is the development evironment for my farm_agrikern drupal module

HOW TO UPDATE DEV INSTANCE WITH LIVE DATA:

	cp -r farmOS-dev farmOS-dev-old
	cd farmOS-dev
	git stash
	git pull
	git stash pop
	git status
	git checkout --theirs web/sites/default/files/db.sqlite
	git add web/sites/default/files/db.sqlite
	git stash drop
	git submodule update --recursive
	install and enable all modules that were installed after commit9655aee9f334964c923d7c3abdbd3ee6ca817f37: farm_plant
	composer require drupal/devel_entity_updates
	vendor/bin/drush en devel_entity_updates
	vendor/bin/drush entup

IMPORTANT:

Always delete all entities and uninstall module before creating a commit!

Host site locally

	php -S localhost:8080 -t web/

Update module entities

	./vendor/bin/drush entity-updates  

Reinstall module

	./vendor/bin/drush devel:reinstall farm_agrikern

In case reinstall fails with: no such table {tablename}

	CREATE TABLE {tablename} (id INT, deleted INT);
Description
No description provided
Readme 43 MiB
Languages
PHP 94%
CSS 2%
JavaScript 1.9%
Twig 1.6%
SCSS 0.3%
Other 0.1%