Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
fb078fc495 | |||
7ece85ddda | |||
|
fe58e1eb08 | ||
|
6052b8a2d0 | ||
|
57dcfd2505 | ||
|
6d4736dfce | ||
|
535aceac12 | ||
e221729d95 |
@ -1,2 +1,10 @@
|
||||
# chmura-zajecia
|
||||
|
||||
1. Clone the repo.
|
||||
2. Run
|
||||
```
|
||||
./deploy.sh
|
||||
```
|
||||
Loading the database may take a while.
|
||||
|
||||
3. On Postgres cofiguration page set SSL_MODE to required.
|
||||
|
@ -1 +1 @@
|
||||
https://s464951-gitea-fa34820a73f7.herokuapp.com/
|
||||
https://s464951-gitea-9bf54aff0fde.herokuapp.com/
|
||||
|
5
run.sh
5
run.sh
@ -1,10 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
FILE=./app_url.txt
|
||||
FILE=/app/app_url.txt
|
||||
ROOT_URL=$(cat $FILE)
|
||||
|
||||
printf($ROOT_URL)
|
||||
HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-`
|
||||
NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
||||
USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"`
|
||||
@ -13,7 +12,7 @@ PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
|
||||
mkdir -p /var/lib/gitea/custom/conf
|
||||
|
||||
echo "[server]" > /var/lib/gitea/custom/conf/app.ini
|
||||
echo "ROOT_URL = $ROOT_URL >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "ROOT_URL = $ROOT_URL" >> /var/lib/gitea/custom/conf/app.ini
|
||||
|
||||
echo "[database]" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "DB_TYPE = postgres" >> /var/lib/gitea/custom/conf/app.ini
|
||||
|
Loading…
Reference in New Issue
Block a user