Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
CheersnGears Posted Wednesday at 01:23 PM Posted Wednesday at 01:23 PM I am trying to clone my site to my test install, but I use S3 for file storage. I realize if I upgrade the test install it will change files on S3 as well. Can someone help me think of a workflow to get a test site created so I can do a dry run upgrade to IPS5?
Marc Posted Wednesday at 01:48 PM Posted Wednesday at 01:48 PM Make sure you backup everything then Copy site files copy s3 to a copy location Get the dev site running Go to the files->Storage section and set up a new storage location Change the locations of the files to that new location, ensuring you select that you already moved the files CheersnGears 1
CheersnGears Posted Wednesday at 01:52 PM Author Posted Wednesday at 01:52 PM 2 minutes ago, Marc said: Make sure you backup everything then Copy site files copy s3 to a copy location Get the dev site running Go to the files->Storage section and set up a new storage location Change the locations of the files to that new location, ensuring you select that you already moved the files Thank you. I think this could be important workflow and might even need to be a note in the download section to warn people if they use S3 so they aren't accidentally upgrading their live site files.
Marc Posted Wednesday at 02:15 PM Posted Wednesday at 02:15 PM Its not something we would document really, as essentially its the person who runs the sites responsibility to do their copies correctly. However when asked, thats generally the way I would do it
Richard Arch Posted Wednesday at 03:49 PM Posted Wednesday at 03:49 PM @Marc Would you have any recommenations on how to prevent automatic emails and purchase renewals happening while you are setting up the test site? CheersnGears 1
Daniel F Posted Wednesday at 07:36 PM Posted Wednesday at 07:36 PM Email can be disabled by setting the EMAIL_DEBUG_PATH constant \define( 'EMAIL_DEBUG_PATH', '/dev/null' ); OR, depending on your setup you can also disable it direct on the mail server or use a service like https://debugmail.io The NEXUS_TEST_GATEWAYS constant can be used to set the payment gateways to sandbox mode
CheersnGears Posted Wednesday at 08:21 PM Author Posted Wednesday at 08:21 PM A page for setting up test install clones with these considerations would be welcome. rnorth6920 1
Richard Arch Posted Wednesday at 10:24 PM Posted Wednesday at 10:24 PM Ok, got you on adding those constants. 2 hours ago, Daniel F said: The NEXUS_TEST_GATEWAYS constant can be used to set the payment gateways to sandbox mode Is there a chance that the renewal task will run before you have changed all the products over to use the test gateway?
Marc Posted Thursday at 09:43 AM Posted Thursday at 09:43 AM What you could do is ensure you add the constants file before you add anything else though. Then its not a possibility
Richard Arch Posted Thursday at 02:16 PM Posted Thursday at 02:16 PM 4 hours ago, Marc said: What you could do is ensure you add the constants file before you add anything else though. Then its not a possibility Oh, adding the NEXUS_TEST_GATEWAYS constant does more than just allow us to add test payment method. Does it actually disable the existing payment methods in some way?
Marc Posted Thursday at 03:42 PM Posted Thursday at 03:42 PM It switches them to use the test APi locations
CheersnGears Posted Thursday at 04:03 PM Author Posted Thursday at 04:03 PM These's sorts of tips in the proper order would make for a great help document. I'm not saying you include the basics like how to copy the databases or files, but pointing out that S3 usage is a consideration and the ways to shut down auto billing and e-mails before they happen would be a great guide for us Admins.
Richard Arch Posted Thursday at 04:24 PM Posted Thursday at 04:24 PM 37 minutes ago, Marc said: It switches them to use the test APi locations Thats brilliant, so in case of Stripe any payment would fail. Maybe one day I will be brave enough to try that out 😉 Thanks Marc
Marc Posted Friday at 08:12 AM Posted Friday at 08:12 AM Fail if not reconnected to a test stripe account, yes Richard Arch 1
Recommended Posts