Best workflow for developing packages
Permalink
Hi everyone, I just started developing websites with Concrete5.
I am making a package that adds simple pages and blocks.
My problem is that each time I add a new block or page, I have to reinstall my package by following these steps :
- Copying my package directory outside of `package`
- Uninstalling my package
- Moving back my package in the `packages` folder
- Reinstalling my package
I found an alternative solution which consists in adding my new blocks in the `upgrade` method, but it doesn't feel ok, yet.
Am I missing something ?
I am making a package that adds simple pages and blocks.
My problem is that each time I add a new block or page, I have to reinstall my package by following these steps :
- Copying my package directory outside of `package`
- Uninstalling my package
- Moving back my package in the `packages` folder
- Reinstalling my package
I found an alternative solution which consists in adding my new blocks in the `upgrade` method, but it doesn't feel ok, yet.
Am I missing something ?
hello - I might be missing something obvious but why do you need to do steps 1 and 3?
Uninstalling my package seems to remove its directory from the `packages` folder.
Edit: Actually, I was really missing something.
I thought I had to check the "Yes, remove the package's directory from the installation directory." box.
Turns out that it is not necessary, thank you :)
Edit: Actually, I was really missing something.
I thought I had to check the "Yes, remove the package's directory from the installation directory." box.
Turns out that it is not necessary, thank you :)