moved backend application to src directory

This commit is contained in:
majormjr 2016-05-12 07:31:05 -04:00
parent e204d0ffff
commit 6552488748
13 changed files with 9 additions and 8 deletions

View File

@ -2,5 +2,6 @@
# #
build: build:
go build -o $(HOME)/factorio-server/factorio-server-manager go build -o $(HOME)/factorio-server/factorio-server-manager src/*
cp -r app/ $(HOME)/factorio-server/ cp -r app/ $(HOME)/factorio-server/
cp conf.json.example $(HOME)/factorio-server/conf.json

View File

@ -1,6 +1,5 @@
{ {
"factorio_dir": "/home/mitch/.factorio", "username": "admin",
"username": "name", "password": "factorio",
"password": "$111",
"database_file": "auth.leveldb" "database_file": "auth.leveldb"
} }

View File

@ -80,7 +80,7 @@ func (auth *AuthHTTP) listUsers() ([]User, error) {
userResponse = append(userResponse, u) userResponse = append(userResponse, u)
} }
log.Printf("listing users: %+v", users) log.Printf("listing users: %v found", len(users))
return userResponse, nil return userResponse, nil
} }

View File

@ -19,9 +19,10 @@ class ConfigContent extends React.Component {
$.ajax({ $.ajax({
url: "/api/config", url: "/api/config",
dataType: "json", dataType: "json",
success: (data) => { success: (resp) => {
this.setState({config: data.data}) if (resp.success === true) {
console.log(this.state.config) this.setState({config: resp.data})
}
}, },
error: (xhr, status, err) => { error: (xhr, status, err) => {
console.log('/api/config/get', status, err.toString()); console.log('/api/config/get', status, err.toString());