Solved

Tcl/CMS command to tell whether I'm currently on the dev or live site?

Posted on 2002-06-11
3
219 Views
Last Modified: 2010-03-17
Can I with a Tcl command tell whether I'm on the development or the live site?

// Anders
0
Comment
Question by:Ruskin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
davemas earned 100 total points
ID: 7076630
Certainly you can, just use [SHOW PM_HOST] and
[SHOW PM_PORT] and this will give you the CDS host:port
information you want, and from them you can know if its the Live CDS or the development CDS .  

Another way is to declare a local
var in your delivery.tcl with the host and port of your CDS but this is not necessary as Vignette provides you the same information:

If the two CDS are on diferent machines:

on the delivery.tcl from the Live CDS :  
  SET PORT_LIVE 83
  SET HOST_LIVE 140.25.52.21  

on the delivery.tcl from the Live CDS :  
  SET PORT_DEV 81
  SET HOST_DEV 140.25.52.22  

if the two CDS are on the same machine :
  SET PORT_LIVE 83
  SET PORT_DEV 81
  SET HOST_CDS 140.25.52.21  

0
 

Author Comment

by:Ruskin
ID: 7077678
Thanks Davemas!

Regards
// Anders
0
 
LVL 2

Expert Comment

by:memerot
ID: 9069271
You probably want to put this in a library, and in that library set any variables that are box specific.  Then include that library in all the pages that reference the box name for generating links, etc.  I used to use HTTP_HOST and HTTP_SERVER_NAME mostly.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question