Files
farmOS-dev/README.md

984 B

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);