Skip to content

Commit 4ad0c93

Browse files
committedFeb 16, 2018
Make some things easier to understand
1 parent 43a0c94 commit 4ad0c93

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed
 

Diff for: ‎README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
SpaceDock is an open source website software that can host modifications for multiple games. It started as a fork of the popular KerbalStuff software for Kerbal Space Program and evolved since then.
33

44
SpaceDock is split into two parts:
5-
* The frontend, which is not released under an open source license and unavailable to the public
6-
* The backend which is licensed as MIT and free for everyone to use.
5+
* The frontend, which is currently developed under the name [OpenDock](https://github.com/KSP-SpaceDock/OpenDock)
6+
* The backend which developed here.
77

88
The backend handles all the content that SpaceDock stores, like mods and users. The program is designed to be as lightweight as possible to distribute it across multiple nodes. A frontend can then query the multiple nodes. Due to the modular nature of the framework, third party persons who are interested in mod hosting can either host their own backend together with a custom frontend, or create just a frontend and rely on SpaceDocks infrastructure internally to host their mods. This allows for flexible and easily customised mod repositories (once there are free frontends available)
99

@@ -51,6 +51,8 @@ Well, "plugins"...
5151

5252
If you want to use plugins in your SpaceDock instance, you need to enter their goland dependency urls into build/plugins.txt. You can use full glide versioning syntax here. After doing so, you need to run `build/fetch_plugins.sh` if you are on Linux/MacOS or `build/fetch_plugins.ps1` on Windows. This will create a file called `build_sdb.go` that includes the specified plugins and fetch them using glide.
5353

54+
Even if you don't plan to use plugins, execute the `fetch_plugins` script. It will work without a `build/plugins.txt` file being present, and just creates the `build_sdb.go` file.
55+
5456
#### Building and starting the application
5557
To build the app you need to call `go build` on the `build_sdb.go` file. The only difference between Linux and Windows is, that Windows users should use `sdb.exe` instead of `sdb`
5658

Diff for: ‎build/fetch_plugins.ps1

100644100755
File mode changed.

Diff for: ‎build/fetch_plugins.sh

100644100755
+4-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ while IFS= read -r line; do
1212
then
1313
if [ -e "$PWD/build/plugins.txt" ]
1414
then
15-
while IFS= read -r line2; do
15+
for line2 in `cat $PWD/build/plugins.txt`; do
16+
echo $line2
1617
FILE="$FILE _ \"$line2\"\n"
17-
$GOPATH/bin/glide get $line2 || true
18-
done < $PWD/build/plugins.txt
18+
glide get $line2 || true
19+
done
1920
fi
2021
fi
2122
FILE="$FILE$line\n"

Diff for: ‎build/install_glide.ps1

100644100755
File mode changed.

Diff for: ‎build/install_glide.sh

100644100755
File mode changed.

Diff for: ‎config/config.example.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ smtp-password: ""
3232
smtp-tls: false
3333

3434
# SQL settings
35-
dialect: "mysql"
36-
connection-data: ""
35+
dialect: "postgres"
36+
connection-data: "postgresql://user:password@host/dbname?sslmode=disable"
3737

3838
# Absolute path to the directory you want to store mods in
3939
storage: ""

0 commit comments

Comments
 (0)
Please sign in to comment.