close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Local testing and developer note paths

Thread began 7/14/2010 7:34 am by wa323029 | Last modified 8/05/2010 12:08 pm by Jason Byrnes | 1379 views | 6 replies |

wa323029

Local testing and developer note paths

I have added CMS2.0.1 to a simple site and due to time did not test locally, just uploaded run the installation, set up the admin etc. Then extracted the developers notes and added to the php pages. Changing from static to dynamic content. Everything worked as expected.

I now need to develop the site and require to do this locally. I have set up local testing server downloaded the site and db dump etc. Obviuosly it does not just work as the paths are all wrong in the developer notes added.

Looking around the forum the WA_globals.php is mentioned a lot for setting the local testing server paths. The WA_globals.php file I have does not look anything that the simple php text file refered to. (or that in earlier php solutions from WA)

The developer notes are of the format:
<?php include('/var/www/vhosts/domain.com/httpdocs/cms/WA_CMS/addtosite.php'); echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home', 'Content', false); ?>

The db globals has nothing to set for local path.

Can you suggest a working method for developing locally? All the files have devleoper notes in the above format that refers to the live server path and it seems very manual to go thorugh and change them by find and replace, then again to upload live. THe site will also need to be moved to another server at some point and again this manual update does not seem correct. I assume I am missing the obvious?

Can you point in the right direction to update the "global" settings for testing/live server paths?

I do subscribe to the extension library if any of these are required to make the changes.

Final question - the site scupltor cms gives access to optimization should this load with the PowerCMS install. The php file seems to be present but no obvious links into it at a quick glance. Can this be added?

Thanks Ian

Sign in to reply to this post

neilo

Hi Ian,

The surest way to get this set up for your local machine would be to run a clean install using the original downloaded solution files. This should install it to your local machine with the correct paths. You would run through the same install procedures as you did for the remote installation, but this time you would enter the details for your local mySql database, which you would have prepared before the install.

Sign in to reply to this post

wa323029

Thanks for the reply.

I can set it up locally without a problem (!) with a fresh install or with the downloaded files but still need to correct the paths produced. I am assuming if it is set up on my testing server the developer notes would be produced to look for that testing server?

The problem is then the same when it has been developed I would need to upload to the live server but change all the includes to point to the correct location as per my original post. If this is done manually by find and replace then I'm likely to miss something and the whole site would need to be tested again live.

Can I change this globally?

Sign in to reply to this post

Jason ByrnesWebAssist

No, it cannot be changed globally without doing a find and replace.

the developer notes are generated based on the computer that poser CMS is installed on, you are best having it installed in only one place and testing only in that one place.

Sign in to reply to this post

wa323029

Jason

The suggested workflow for Power CMS is to upload live with no local testing?

I have set up one Powerstore site and if my memory is correct you could test locally and upload later - a quick check around the forum suggest so also. With Powerstore 3 and I believe cms 1 you could develop locally and then up to your production server. The developer notes did not have absolute paths that are produced by cms 2.

Is there any other way forward to all me to test locally or is the find/replace route the only one with this solution? Could you give me a pointer to where to hack the solution to give me this functionality? Can the includes be changed easily to work as per Powerstore3 and cms1?

Could Webassist explain the reasoning for this approach of restricting local testing of this solution - sure there must be a good logic here but I can't understand it. Maybe missing it.

Also again is the optimization function available or not?

Thanks for the support
Ian

Sign in to reply to this post

wa323029

Local testing - how?

Workflow suggestions for testing locally without the absolute links - please see previous posts for my fuller question. Don't want to edit it live on the server.

Sure must be missing something here but would like your input before hacking the app apart.

Thanks Ian

Sign in to reply to this post

Jason ByrnesWebAssist

you can certainly test locally, to test the system, but the system is intended to be used on the live server.


Your local testing is just that, testing.

Once testing is complete, you upload the system to the live server to begin inserting the live content.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...