An open API service indexing awesome lists of open source software.

https://github.com/bird-dancer/host-from-git-repo

push your code in a git repo and it will be deployed inside of a nginx server block
https://github.com/bird-dancer/host-from-git-repo

automation deployment git hosting nginx

Last synced: about 2 months ago
JSON representation

push your code in a git repo and it will be deployed inside of a nginx server block

Awesome Lists containing this project

README

        

# host-from-git-repo
![CI](https://github.com/f-eliks/host-from-git-repo/workflows/CI/badge.svg)

Push your code in a git repo and it will be deployed inside of a nginx server block

## how to use it:
>- create a new user if required
- execute shell script as super user or owner of the `/var/www` directory
- answer the questions
- add the remote repository `host-address:/var/www/reponame/reponame.git` on your machine

## how it works:
The pushed code will be put inside the `/var/www/.../content` because of the hook-file `post-receive`

The relevant part of the folder structure loks like:

www

└── test

├── content

│   └── [possible backend files]

│   └── html

│   └── index.html

└── test.git

├── hooks

│   ├── post-receive

(The repository name in this case is test)

The nginx file inside of `sites-available` has `/var/www/test/content/html` as the root paramenter.