Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2002-06-11
3
Medium Priority
?
223 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 400 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

618 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