Skip to content
Snippets Groups Projects
setup.md 1000 B
Newer Older
Arnaud Levy's avatar
Arnaud Levy committed
# Setup

As Osuny is multi-university, we need ways to:
- deploy university to production (even without website yet)
- deploy university to staging
- work locally on a specific university

And as each university is multi-website, we need ways to:
- deploy website to production
- deploy website to staging
- work locally on a specific website

## Production

Arnaud Levy's avatar
Arnaud Levy committed
```
git remote add production git@ssh.osc-fr1.scalingo.com:osuny-production.git
```

Arnaud Levy's avatar
Arnaud Levy committed
- https://demo.osuny.org
- https://bordeauxmontaigne.osuny.org
Arnaud Levy's avatar
Arnaud Levy committed
- https://clermontauvergne.osuny.org
Arnaud Levy's avatar
Arnaud Levy committed

Arnaud Levy's avatar
Arnaud Levy committed
## Staging

Arnaud Levy's avatar
Arnaud Levy committed
No setup to do, it's auto-deployed from Github.

Arnaud Levy's avatar
Arnaud Levy committed
- https://demo.osuny.dev
- https://bordeauxmontaigne.osuny.dev
Arnaud Levy's avatar
Arnaud Levy committed
- https://clermontauvergne.osuny.dev
Arnaud Levy's avatar
Arnaud Levy committed

Arnaud Levy's avatar
Arnaud Levy committed
## Dev

The solution is to set up a host.

/etc/hosts
```
Arnaud Levy's avatar
Arnaud Levy committed
127.0.0.1       demo.osuny
Arnaud Levy's avatar
Arnaud Levy committed
127.0.0.1       bordeauxmontaigne.osuny
Arnaud Levy's avatar
Arnaud Levy committed
127.0.0.1       clermontauvergne.osuny
Arnaud Levy's avatar
Arnaud Levy committed
```

Then we have access on:
Arnaud Levy's avatar
Arnaud Levy committed
- http://demo.osuny:3000
Arnaud Levy's avatar
Arnaud Levy committed
- http://bordeauxmontaigne.osuny:3000
Arnaud Levy's avatar
Arnaud Levy committed
- http://clermontauvergne.osuny:3000