Skip to content

Instantly share code, notes, and snippets.

View escobar022's full-sized avatar

Andres Escobar escobar022

View GitHub Profile
@escobar022
escobar022 / php5.ini
Created September 21, 2017 17:08 — forked from jennimckinnon/php5.ini
Increasing the file upload limit for WordPress.
upload_max_filesize = 1000M
post_max_size = 2000M
memory_limit = 3000M
file_uploads = On
max_execution_time = 180
@escobar022
escobar022 / post-receive
Created February 9, 2016 20:02 — forked from lemiorhan/post-receive
Post-receive hook to deploy the code being pushed to production branch to a specific folder
#!/bin/bash
target_branch="production"
working_tree="PATH_TO_DEPLOY"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then