-
Notifications
You must be signed in to change notification settings - Fork 5
/
run.sh
29 lines (25 loc) · 1.1 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# This file is part of ShieldBlaze ExpressGateway. [www.shieldblaze.com]
# Copyright (c) 2020-2022 ShieldBlaze
#
# ShieldBlaze ExpressGateway is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ShieldBlaze ExpressGateway is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ShieldBlaze ExpressGateway. If not, see <https://www.gnu.org/licenses/>.
#
MAVEN_OPTS="-Xms512m -Xmx1024m -XX:+UseShenandoahGC"
export MAVEN_OPTS
#Initialize everything before running
sudo ./initialize.sh
#Compile and install modules in local Maven repository
mvn clean install
#Start ExpressGateway
mvn exec:java -pl bootstrap -Dexec.mainClass="com.shieldblaze.expressgateway.bootstrap.ExpressGateway"