Skip to content

Instantly share code, notes, and snippets.

View fabianoflorentino's full-sized avatar

Fabiano Santos Florentino fabianoflorentino

View GitHub Profile
@fabianoflorentino
fabianoflorentino / git-deployment.md
Created August 20, 2020 13:03 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

[user]
#
# Fonte: https://github.com/brauliobo/gitconfig/blob/master/configs/.gitconfig
#
# not good to force this globally, you should use the right name/email in each context
#email = brauliobo@gmail.com
#name = Braulio Bhavamitra
#email = braulio@eita.org.br
#name = Braulio Oliveira
#email = brauliooliveira@olery.com
@fabianoflorentino
fabianoflorentino / Dockerfile
Created November 30, 2019 19:14
Dockerfile to Apache2 on Alpine Linux
#
# Author: Fabiano Santos Florentino
# Version: 0.0.1
#
FROM alpine
RUN apk update \
&& apk add --no-cache apache2 \
&& adduser apache apache \
&& mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 \