Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
3647 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Seamless deployment across environments. What is the best practices for an appli
juergeng
over 9 years ago
Seamless deployment across environments. What is the best practices for an application to get aware automatically on what kind of environment (staging areas: dev, test, prod) it is running?This should be used e.g. to define variables for finding the SOA services and so on.We would like to avoide modification of an app after deployment. What is the recommendation?Thanks Juergen
OriginalPostID-152018
OriginalPostID-152018
Discussion posts and replies are publicly visible
0
Andrew P Gramann
Certified Lead Developer
over 9 years ago
In the past I've used an environment specific constant that has a unique value in each Appian environment (DEV, TEST, PROD, etc). When the webservice node is runs, it picks from a list of possible endpoints based on the environment.
The key piece here is that you need to separate your environment specific constants into a separate application so that regular deployments don't require that you update the value of the constant.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
We do that the same way as Andrew described.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
dsmithgxp
Certified Associate Developer
over 9 years ago
Hi Juregen - Typically we separate Environmental type rules and constants in a separate folder and not include those artifacts when we push from system to system. In terms of determining your environment, you can leverage a rule to call APN_getSiteUrl() (which is part of the common objects app) and based on that rule determine what environment you are running in. From there leverage logic to create dynamic links etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
davidm415
over 9 years ago
On a previous project, I also followed the procedure that Andrew describes. I'm sure that the APN_getSiteURL() rule can be useful as well, but we ran into some issues with using it in terms of performance and accuracy.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
benjamins
over 9 years ago
For future reference...
forum.appian.com/.../Environment_Specific_Properties.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel