0

我想使用自定义运行脚本构建我的应用程序。在“激活阶段”之后,我使用默认运行脚本构建了应用程序。

所以我需要用我自己的替换默认脚本。

我需要这样的批处理文件:

@echo off
set "name=projectName"

activator clean stage || pause 1

del ".\target\universal\stage\bin\%name%.bat"

exit

但是调用'activator clean stage'脚本自动关闭后,我该如何解决这个问题?

4

1 回答 1

0

如果您使用的是 Windows,则 bat:

@echo off
activator clean stage
copy custom.bat c:\target\universal\stage\bin\myproject.bat

其中 custom.bat 是将用于启动项目的 bat。但更好地查看项目的自定义配置 https://www.playframework.com/documentation/2.1.x/ProductionConfiguration

于 2015-06-15T09:05:20.987 回答