wip
This commit is contained in:
parent
e53275d167
commit
fb153171f8
|
@ -31,7 +31,6 @@ RUN dpkg --add-architecture i386 && \
|
||||||
strace \
|
strace \
|
||||||
unzip \
|
unzip \
|
||||||
wget \
|
wget \
|
||||||
sudo \
|
|
||||||
zip && \
|
zip && \
|
||||||
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
|
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
|
||||||
apt-get install -y nodejs && \
|
apt-get install -y nodejs && \
|
||||||
|
|
|
@ -54,7 +54,8 @@ start_server() {
|
||||||
|
|
||||||
stop_server() {
|
stop_server() {
|
||||||
if [ "$(uname)" = 'Linux' ]; then
|
if [ "$(uname)" = 'Linux' ]; then
|
||||||
sudo systemctl start realm-object-server
|
# FIXME: sudo is required if not Docker
|
||||||
|
systemctl start realm-object-server
|
||||||
fi
|
fi
|
||||||
if [[ ${SERVER_PID} -gt 0 ]] ; then
|
if [[ ${SERVER_PID} -gt 0 ]] ; then
|
||||||
kill -9 ${SERVER_PID}
|
kill -9 ${SERVER_PID}
|
||||||
|
@ -308,8 +309,9 @@ case "$TARGET" in
|
||||||
adb reverse tcp:9443 tcp:9443
|
adb reverse tcp:9443 tcp:9443
|
||||||
adb reverse tcp:9080 tcp:9080
|
adb reverse tcp:9080 tcp:9080
|
||||||
adb reverse tcp:8888 tcp:8888
|
adb reverse tcp:8888 tcp:8888
|
||||||
sudo systemctl enable realm-object-server
|
# FIXME: sudo is required if not Docker
|
||||||
sudo systemctl start realm-object-server
|
systemctl enable realm-object-server
|
||||||
|
systemctl start realm-object-server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ $CONFIGURATION == 'Debug' ]] && exit 0
|
[[ $CONFIGURATION == 'Debug' ]] && exit 0
|
||||||
|
|
Loading…
Reference in New Issue