Setup of Noter in CakePHP, MySQL and Docker (and other tools) - notes, commands, snippets go here.
Direct branch-URL - https://github.com/konnector-dev/noter/tree/cakephp-mysql
Repo URL - https://github.com/konnector-dev/noter
Branch - cakephp-mysql
Missed commands in the first version:
- git clone git@github.com:konnector-dev/noter.git
- cd noter
- git checkout cakephp-mysql
- docker-compose run noter composer install -n --prefer-dist
- docker-compose run noter bin/cake migrations migrate
- docker-compose run noter bin/cake migrations seed
- docker-compose up --build
The above command will create a migrations file (at
config/Migrations
) - you can check it to confirm if the columns have the specifications as expected, or you can modify this file as per the changes needed.Next, run the migration to make desired changes to the DB by using following command:
bin/cake migrations migrate
Docker tip: If you are using docker/docker-compose, then prefix the above command with
docker-compose run noter
(where noter is the service name in docker-compose.yml file)