mirror of
https://github.com/google/nomulus
synced 2026-08-16 20:26:08 +00:00
Build different console versions for different environments (#2715)
TESTED=deployed to alpha
This commit is contained in:
+4
-4
@@ -37,11 +37,11 @@ dependencies {
|
||||
}
|
||||
|
||||
tasks.register('copyConsole', Copy) {
|
||||
from("${rootDir}/console-webapp/staged/dist") {
|
||||
include "**/*"
|
||||
from("${rootDir}/console-webapp/staged/") {
|
||||
include "console-*/*"
|
||||
}
|
||||
into layout.buildDirectory.dir('jetty-base/webapps/console')
|
||||
dependsOn(':console-webapp:buildConsoleWebapp')
|
||||
into layout.buildDirectory.dir('jetty-base/webapps/')
|
||||
dependsOn(':console-webapp:buildConsoleForAll')
|
||||
}
|
||||
|
||||
tasks.register('stage') {
|
||||
|
||||
+4
-2
@@ -13,8 +13,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
environment=$1
|
||||
env=${1:-"alpha"}
|
||||
cd /jetty-base
|
||||
java -Dgoogle.registry.environment=${environment:-"alpha"} \
|
||||
cp -rf webapps/console-${env} webapps/console
|
||||
echo "Running ${env}"
|
||||
java -Dgoogle.registry.environment=${env} \
|
||||
-Djava.util.logging.config.file=/logging.properties \
|
||||
-jar /usr/local/jetty/start.jar
|
||||
|
||||
Reference in New Issue
Block a user