There are several ways to clone a repository from github. Similar from other providers, such as bitbucket, gitlab, etc.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Mostly, we use
- http
- ssh
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
<?php | |
/** | |
* Parses a template argument to the specified value | |
* Template variables are defined using double curly brackets: {{ [a-zA-Z] }} | |
* Returns the query back once the instances has been replaced | |
* @param string $string | |
* @param string $find | |
* @param string $replace | |
* @return string |
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"gopkg.in/yaml.v2" | |
) | |
type Config struct { |
# wp-secure.conf | |
# | |
# | |
# This file includes common security considerations for wordpress using nginx. | |
# | |
# The goal is to block actions which are usually dangerous to wordpress. | |
# Additionally, we block direct access to PHP files and folders which should not | |
# be accessed directly from a browser. | |
# | |
# Also have included exceptions for plugins that are known to require this access. |
There are several ways to clone a repository from github. Similar from other providers, such as bitbucket, gitlab, etc.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Mostly, we use
#!/bin/bash | |
set -e | |
trap 'catch' EXIT | |
deploy() { | |
notify "start" | |
info "Install dependencies" | |
composer install --prefer-dist -n --no-dev |