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"
|
||||
PIDFILE="$DAEMON_HOME/$NAME.pid"
|
||||
SCRIPTNAME="$DAEMON_HOME/$0"
|
||||
JAVA_OPT='-Xms=512M -Xmx=2048M'
|
||||
|
||||
# ***********************************************
|
||||
# Normal functions for bash commands.
|
||||
@@ -29,7 +30,7 @@ start()
|
||||
else
|
||||
echo "Starting service $NAME"
|
||||
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
|
||||
echo "Service started [`cat $PIDFILE`]\n"
|
||||
fi
|
||||
@@ -89,7 +90,7 @@ api_start() {
|
||||
cd $DAEMON_HOME
|
||||
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 $?
|
||||
|
||||
expr $! - 1 > $PIDFILE
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist/ts",
|
||||
"outputPath": "../resources/static/",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { AuthService } from '../core/services/auth.service';
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
@@ -12,6 +13,8 @@ import { AuthService } from '../core/services/auth.service';
|
||||
`]
|
||||
})
|
||||
export class HeaderComponent {
|
||||
title = environment.title;
|
||||
|
||||
constructor(
|
||||
private authService: AuthService
|
||||
) {}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
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