Announcement

Collapse
No announcement yet.

How to upgrade SC

Collapse
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to upgrade SC

    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:
    1. NEVER update directly.
    2. Backup your projects.
    3. 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).
    4. Once you have your SC folder safe, then update. Generate your project, and test if it's working as expected.
    5. 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".
    1. Rename your scriptcase folder.
    2. Copy your previous SC installation again, inside wwwroot folder and rename to scriptcase or whatever name you used.
    3. 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)
    Last edited by Giu; 07-15-2015, 01:15 PM.
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

  • #2
    nice post Giu:

    Thank you so much.

    Regards

    Comment


    • #3
      From someone experiencing their first version changes with SC.
      I thank you also.
      Ed

      Comment


      • #4
        Gui,
        You said to "3. Stop SC service..."
        I don't see any service in my Windows 8.1 services list that are described as ScriptCase or NetMake. Could you explain how to find them?
        Thanks
        Ed

        Comment


        • #5
          Oh, I did find ApacheScriptCase8.
          Ed

          Comment


          • #6
            Hi Giuseppe
            You are right. With a big project something could be wrong in a new release.
            But i can't run any application.... It seems a bit exaggerated... I get the error below:

            Fatal error: Call to a member function GetTag() on a non-object in C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\devel\class\ge nerator\nmFontePHPForm.class.php on line 12921
            do you have some suggest?
            thank
            Giovanni

            Comment


            • #7
              Change theme and try again
              /Giuseppe

              Professional Scriptcase Services
              Some Customers opinions

              Comment


              • #8
                Nice Giu.
                This post will remain sticked for newer users knows how to upgrade and succesfully roll-back in case of problems.
                Regards,
                Cavadinha

                Development Team
                Netmake - IT Solutions

                Comment


                • #9
                  Giu, excellent advice and thoughtful: thank you. Unfortunately any new development done on 8.1 would be lost if you run into a bug that makes it not fit for production.

                  Comment


                  • #10
                    Originally posted by scriptcaser View Post
                    Giu, excellent advice and thoughtful: thank you. Unfortunately any new development done on 8.1 would be lost if you run into a bug that makes it not fit for production.
                    Don't understand. I ser 8.1 very stable
                    /Giuseppe

                    Professional Scriptcase Services
                    Some Customers opinions

                    Comment


                    • #11
                      Giu, i updated sc8.0.48 to sc8.1.2 using online upgrade from sc itself (i have made the backup as you advised)

                      now it is still running on php 5.4, what i can do to make it run on 5.6?

                      moreover, is 5.6 will add speed only? or new features as well? if new features as well, then how is current version 8.1.2 with php 5.4 will deal with those new feature right now?
                      Last edited by MikeDE; 07-24-2015, 07:49 AM.

                      Comment


                      • #12
                        8.1 PHP54 and PHP56 is the same AFAIK. You get PHP 5.6 performance improvements.

                        To upgrade to PHP 5.6 you have to install a new apache with php56 (SC automatic installer is ready for this, if you don't want to install Apache + PHP and so on)
                        Once SC is installed, you can export from your SC 8.1 PHP54 and import into SC 8.1 PHP56, but you can't live with both at the same time with the same license (well, if you stay logged on SC 8.1 PHP54 I think you can) . You have to export, request new installation license in your Serials SC profile, and use new serial to activate you SC PHP56
                        /Giuseppe

                        Professional Scriptcase Services
                        Some Customers opinions

                        Comment


                        • #13
                          MikeDE, the performance of PHP 5.6 worth it every trouble you will pass to configure the new enviorment. Belive me.
                          Regards,
                          Cavadinha

                          Development Team
                          Netmake - IT Solutions

                          Comment


                          • #14
                            Originally posted by Cavadinha View Post
                            MikeDE, the performance of PHP 5.6 worth it every trouble you will pass to configure the new enviorment. Belive me.
                            Totally agree
                            /Giuseppe

                            Professional Scriptcase Services
                            Some Customers opinions

                            Comment


                            • #15
                              I assume that if you use SC 8.1 with PHP 5.6 to generate apps, then the production environment you deploy to must also be running PHP 5.6?

                              Comment

                              Working...
                              X