我使用play2创建默认的scala应用程序:
play new test
然后:
play run
访问http://localhost:9000
,我看到:
但是:
play dist
cd dist
unzip test-1.0.0-SNAPSHOT.zip -d .
cd test-1.0.0-SNAPSHOT
./start
主页将是:
为什么他们不同?
答案 0 :(得分:2)
一种是以开发模式(run
)运行服务器,另一种是生产模式(dist
),这就是显示的页面不同的原因。