diff --git a/README.md b/README.md index 5b2b0c4..1340d10 100644 --- a/README.md +++ b/README.md @@ -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`. -- `_URL` +- `_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). diff --git a/articles/article.go b/articles/article.go index d914ff9..7ce27b0 100644 --- a/articles/article.go +++ b/articles/article.go @@ -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" ) diff --git a/config/config.go b/config/config.go index 8824811..792568b 100644 --- a/config/config.go +++ b/config/config.go @@ -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 diff --git a/go.mod b/go.mod index 08d7018..9fac591 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/phc-dm/phc-server +module git.phc.dm.unipi.it/phc/website go 1.13 diff --git a/main.go b/main.go index 2965146..e3abc1a 100644 --- a/main.go +++ b/main.go @@ -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() { diff --git a/templates/templates.go b/templates/templates.go index 79d8f0c..9a22d88 100644 --- a/templates/templates.go +++ b/templates/templates.go @@ -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 {