Add configuration for production continuous integration and deployment
This commit is contained in:
@@ -16,6 +16,7 @@ DAEMON_HOME="$MINECRAFT_HOME/server"
|
|||||||
DAEMON="$DAEMON_HOME/$NAME.jar"
|
DAEMON="$DAEMON_HOME/$NAME.jar"
|
||||||
PIDFILE="$DAEMON_HOME/$NAME.pid"
|
PIDFILE="$DAEMON_HOME/$NAME.pid"
|
||||||
SCRIPTNAME="$DAEMON_HOME/$0"
|
SCRIPTNAME="$DAEMON_HOME/$0"
|
||||||
|
JAVA_OPT='-Xms=512M -Xmx=2048M'
|
||||||
|
|
||||||
# ***********************************************
|
# ***********************************************
|
||||||
# Normal functions for bash commands.
|
# Normal functions for bash commands.
|
||||||
@@ -29,7 +30,7 @@ start()
|
|||||||
else
|
else
|
||||||
echo "Starting service $NAME"
|
echo "Starting service $NAME"
|
||||||
cd $DAEMON_HOME
|
cd $DAEMON_HOME
|
||||||
nohup 2>/dev/null java -jar $DAEMON &>/dev/null &
|
nohup 2>/dev/null java $JAVA_OPT -jar $DAEMON &>/dev/null &
|
||||||
expr $! - 1 > $PIDFILE
|
expr $! - 1 > $PIDFILE
|
||||||
echo "Service started [`cat $PIDFILE`]\n"
|
echo "Service started [`cat $PIDFILE`]\n"
|
||||||
fi
|
fi
|
||||||
@@ -89,7 +90,7 @@ api_start() {
|
|||||||
cd $DAEMON_HOME
|
cd $DAEMON_HOME
|
||||||
api_check_error $?
|
api_check_error $?
|
||||||
|
|
||||||
nohup 2>/dev/null java -jar $DAEMON &>/dev/null &
|
nohup 2>/dev/null java $JAVA_OPT -jar $DAEMON &>/dev/null &
|
||||||
api_check_error $?
|
api_check_error $?
|
||||||
|
|
||||||
expr $! - 1 > $PIDFILE
|
expr $! - 1 > $PIDFILE
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "dist/ts",
|
"outputPath": "../resources/static/",
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"main": "src/main.ts",
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { AuthService } from '../core/services/auth.service';
|
import { AuthService } from '../core/services/auth.service';
|
||||||
|
import { environment } from '../../environments/environment';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-header',
|
selector: 'app-header',
|
||||||
@@ -12,6 +13,8 @@ import { AuthService } from '../core/services/auth.service';
|
|||||||
`]
|
`]
|
||||||
})
|
})
|
||||||
export class HeaderComponent {
|
export class HeaderComponent {
|
||||||
|
title = environment.title;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private authService: AuthService
|
private authService: AuthService
|
||||||
) {}
|
) {}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: true
|
production: true,
|
||||||
|
apiUrl: 'http://176.188.217.1:54446',
|
||||||
|
appVersion: '0.0.1',
|
||||||
|
title: ''
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user