spring / RapidTools

migrated to https://github.com/spring/pr-downloader
http://springrts.com/wiki/Rapid
4 stars 4 forks source link

Web server setup instructions #52

Open gajop opened 6 years ago

gajop commented 6 years ago

It seems to me that some crucial installation instructions are missing. Currently there are instructions on how to download and compile the tools, and what each tool does, but there is no information on how to use this within a Web server, or how to combine everything.

I assume the update.sh is crucial for updating everything, but it depends on many global settings which aren't explained anywhere.

I think we should explain what to do after compiling everything if someone wants to create their own Rapid server locally. Concretely:

  1. Where to copy the binaries and scripts.
  2. How to setup the Web server so users can upload archives manually, and so tools like pr-downloader would be able to download from it.
  3. How to add new rapid packages. Currently, the process is "ask abma to add it", but what happens under the hood is unknown to me. I assume something gets added in server's /home/packages/git path, but that's just a guess from the update script.
  4. What runs the update script and when? I assume this is something that's just run from time to time, so there's no use of hooks or anything similar..?

I'm asking because I'm working on something to improve our distribution process and I'm considering whether I need to write these elements from scratch or not.

abma commented 6 years ago

1+2: i don't see me adding instructions for setting up an other webserver.

-> look into the existing config, use the info from 3. to set it up

3: https://springrts.com/wiki/Admin:Rapid

abma commented 6 years ago

4: the update script is run every ~5 minutes

gajop commented 6 years ago

1+2. Well I think it's important to do that, otherwise how can people contribute? I'd like to test things on my own before I make any PRs. Where is the existing config? Do I need to get access to the server or something?

  1. Neat, I didn't know about this part of the wiki!
  2. Roger that.
abma commented 6 years ago

1+2 basicly is this script: https://github.com/spring/RapidTools/blob/master/Scripts/update-apache-config.sh

gajop commented 6 years ago

I think it's not going to be easy, but I'll try to setup the server myself using those instructions. If I succeed I'll write the instructions on how to replicate the process.

abma commented 5 years ago

this could help, too: https://github.com/spring/pr-downloader/blob/master/scripts/update-repos.py