2013-05-16 22 views
3

在播放1.x中,您可以定義不同的配置進行生產和發展enviornment:Play 2.x中是否存在「配置環境」?

# These are applied in the default 'dev' enviornment. 
db=mem 
mail.smtp=mock 

# The following are only relevant if 'play id' = prod 
%prod.db=mysql://[email protected]/ 
%prod.mail.smtp.host=in.mailjet.com 
%prod.mail.smtp.user=mailuser 
%prod.mail.smtp.pass=pass 
%prod.mail.smtp.channel=ssl 

確實起到2有相似的地方?

回答