forked from phc/website
Refactored to phc/website
This commit is contained in:
@@ -7,7 +7,7 @@ Repo del server del nuovo sito per il PHC.
|
||||
Per clonare il progetto usare
|
||||
|
||||
```bash
|
||||
$ git clone https://github.com/phc-dm/phc-server
|
||||
$ git clone https://git.phc.dm.unipi.it/phc/website
|
||||
```
|
||||
|
||||
## Development
|
||||
@@ -27,15 +27,15 @@ $ find . -type f -name '*.go' | entr -r go run .
|
||||
|
||||
### Environment Variables
|
||||
|
||||
- `MODE`
|
||||
- `MODE`
|
||||
|
||||
Può essere `production` (default) o `development`.
|
||||
|
||||
- `HOST`
|
||||
- `HOST`
|
||||
|
||||
Indirizzo (locale) sul quale servire il sito, di default è `localhost:8000`.
|
||||
|
||||
- `<SERVIZIO>_URL`
|
||||
- `<SERVIZIO>_URL`
|
||||
|
||||
Rappresentano link ad altri servizi forniti, è comodo impostarli così in modo da poter anche provare tutto insieme in locale su varie porte (e poi in produzione i vari url diventano link a sotto-domini del sito principale).
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/phc-dm/phc-server/config"
|
||||
"git.phc.dm.unipi.it/phc/website/config"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -5,8 +5,8 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"git.phc.dm.unipi.it/phc/website/util"
|
||||
"github.com/joho/godotenv"
|
||||
"github.com/phc-dm/phc-server/util"
|
||||
)
|
||||
|
||||
var Mode string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/phc-dm/phc-server
|
||||
module git.phc.dm.unipi.it/phc/website
|
||||
|
||||
go 1.13
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"git.phc.dm.unipi.it/phc/website/articles"
|
||||
"git.phc.dm.unipi.it/phc/website/config"
|
||||
"git.phc.dm.unipi.it/phc/website/templates"
|
||||
"git.phc.dm.unipi.it/phc/website/util"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/phc-dm/phc-server/articles"
|
||||
"github.com/phc-dm/phc-server/config"
|
||||
"github.com/phc-dm/phc-server/templates"
|
||||
"github.com/phc-dm/phc-server/util"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/phc-dm/phc-server/config"
|
||||
"github.com/phc-dm/phc-server/util"
|
||||
"git.phc.dm.unipi.it/phc/website/config"
|
||||
"git.phc.dm.unipi.it/phc/website/util"
|
||||
)
|
||||
|
||||
type LoadTemplate interface {
|
||||
|
||||
Reference in New Issue
Block a user