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:
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 conf.json.example $(HOME)/factorio-server/conf.json

View File

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

View File

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

View File

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