Hi all,
Because SC 8.1 will release soon, I would like to show you some tips to upgrade SC version.
SC is a big project and some updates comes with bugs, or features don’t working. A good tip to upgrade SC safe, because there isn’t step back, is:
When SC asks for update to a new version:
- NEVER update directly.
- Backup your projects.
- Stop SC service, and do a complete copy of Scriptcase folder inside wwwroot folder. app (generated projects) and tmp folders are not needed (1)(2).
- Once you have your SC folder safe, then update. Generate your project, and test if it’s working as expected.
- If something goes wrong (bug, or whatever), go to Crash. If all it’s ok, enjoy new version.
CRASH
For multiple possibilities, after you upgrade SC, you can get unexpected results. Some bug appears and your project stops working as expected, and so on. If you followed above steps, you can “rollback”.
- Rename your scriptcase folder.
- Copy your previous SC installation again, inside wwwroot folder and rename to scriptcase or whatever name you used.
- Enjoy again your prior version of SC.
Notes to take into consideration
- IMPORTANT You can’t restore a project from a generated/deployed project. SC projects definitions are stored in database as records, and what you use to deploy/test, are PHP generated, and this step is one way only. You can generate from the project inside SC, but you can’t get a project from the generated code. There are 1 way to restore a project, from a project export(3)
(1) App folder is where SC generates the code to test in dev. If you haven’t any code inside out of SC apps, then you can delete without problems. If you have some external libs/files, remember this is not backed up with your project and needs be copied manually. tmp folder is the folder used by SC to store backups to download, and generated JS to use inside projects. As his name, is a temporary folder, safe to be empty.
(2) BTW, is just needed to backup sqlite (or other if you use manual installation) database used by SC, but due to differents versions and so on, is faster a complete bacakup.
(3) Obviously If you keep safe main SC database, then inside is your project, and can be restored too (because you can restore a complete SC installation)