Closed thijsbrentjens closed 3 years ago
maybe the best is two servers, to make sure that sandbox changes won't interfer with the stable
Think we discussed the use of GitHub "Branch Protection".
Think in the simplest case we can have 2 branches and 2 servers (and thus 2 domain names):
main
- for the production serversandbox
- for the Sandbox environmentWe can make main
a protected branch, simplest is to only allow specific users to push, but there are more elaborate configs possible. sandbox
branch will be unrestricted for any users with commit rights on this repo.
2 servers coupled to 2 branches is very well possible with Ansible and thus the GH Workflows: Ansible has the concept of an Inventory basically the hosts on which to perform actions (-i
option). We already have a prod
inventory, see:
Think if we first get all services running via main
, it is time for a sandbox
branch.
@thijsbrentjens will order a second server, @justb4 if this server is ready, could you do the rest then?
@thijsbrentjens will order a second server, @justb4 if this server is ready, could you do the rest then?
ok
as discussed with @justb4: better a separate, dedicated repo for the sandbox to avoid accidental deployment and to keep things clear in scripts and config files.
Also for access management to github easier.
done
depends on #2 : after this is done, config 2 environments: