Skip to content
Snippets Groups Projects
Commit 7b11ee89 authored by Alain Sinzig's avatar Alain Sinzig
Browse files

Update README.md

parent f1be5b25
Branches
No related merge requests found
......@@ -33,14 +33,6 @@ sudo apt update
sudo apt upgrade
```
Move to your project folder where you want to have your sos-maths folder:
```bash
# Example: Go to Documents folder in C:
cd /mnt/c/Users/YOUR_USERNAME/Documents/
# List all files and folders
ls -la
```
Install dependencies:
```bash
sudo apt install git podman-compose
......@@ -51,7 +43,7 @@ Restart wsl (do this in PowerShell) and start Debian manually after:
wsl --shutdown
```
Clone this repo:
After starting WSL again, in WSL, clone this repo:
```
git clone https://gitlab.gnugen.ch/gnugen/infrastructure/urgency-migration/sos-maths.git
cd sos-maths
......@@ -59,7 +51,7 @@ cd sos-maths
* Make sure you are in your home directory and not in `/mnt/c` as the filesystem on the C: drive is not compatible with what we are going to do.
Change the port to `8080` because of permission reasons.
Your sos-maths instance will be available on `http://localhost:8080` instead of `http://localhost:80` like defined in the linux manual.
Your sos-maths instance will be available on `http://localhost:8080` instead of `http://localhost:80` like described in the linux manual.
```bash
# Changes the port to 8080
sed -i "s/80:80/8080:80/g" compose.yaml
......@@ -68,9 +60,9 @@ sed -i "s/80:80/8080:80/g" compose.yaml
After this, you can just follow the linux instructions (you can skip to the installation of the submodule).
**Important**: Don't forget, you can edit all the files you just downloaded via git in your file explorer, not only in the Debian environment.
* If you open the file explorer there's a penguin on the bottom left (right below "Network") where you can view / edit your linux files.
* If you open the file explorer there's a penguin icon on the bottom left (right below "Network") where you can view / edit your linux files.
* In this example the php code would be in `\\wsl.localhost\Debian\home\YOUR_USERNAME\sos-maths\data\sos-maths`
* Open the text-exitor of your choice in that folder for coding
* Open the text-exitor of your choice in that folder for coding.
## Usage - Linux
......@@ -108,11 +100,12 @@ nano .env # If you're on WSL you can also edit it using the file explorer
## Usage - Linux - Developement
Turn on sos-maths so it runs (by default) on `0.0.0.0:80` (accessible via `http://localhost/`):
Turn on sos-maths so it runs (by default) on `0.0.0.0:80` (or `8080` depending on which port you chose in `compose.yaml`):
```bash
podman-compose up -d
```
* This takes some time the first time.
* You can access the website on `http://localhost/` (or `http://localhost:8080/`)
Turn off the sos-maths site:
```bash
......@@ -135,7 +128,7 @@ $ su - postgres
$ psql sosmath -U www-sosmath
```
If you want to use a gui, you can uncomment the port in `compose.yaml` and connect
If you want to use a gui for accessing the database, you can uncomment the port in `compose.yaml` and connect
your GUI in a test environment.
## Configuration
......@@ -146,6 +139,7 @@ Create a user like normal but activate it on the database or via this script (on
```bash
./scripts/create_user.sh
```
* This script exists for people that are too lazy to add working SMTP configuraiton to their test environments.
### Configuration - php version
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment