First let's install Homebrew.
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
<VirtualHost *:80> | |
DocumentRoot "/path/to/project" | |
ServerName dev.project | |
<Directory "/path/to/project"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Require all granted | |
</Directory> | |
#!/bin/bash | |
TARGET="/home/user/project" | |
GIT_DIR="/home/user/project.git" | |
BRANCH="master" | |
while read oldrev newrev ref | |
do | |
# only checking out the master (or whatever branch you would like to deploy) | |
if [ "$ref" = "refs/heads/$BRANCH" ]; | |
then |
#!/bin/bash | |
TARGET="/home/wtqeysrg/project" | |
GIT_DIR="/home/wtqeysrg/project.git" | |
PUBLIC_DIR="/home/wtqeysrg/public_html" | |
BRANCH="master" | |
while read oldrev newrev ref | |
do | |
# only checking out the master (or whatever branch you would like to deploy) | |
if [ "$ref" = "refs/heads/$BRANCH" ]; |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
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.
# Start SSH Agent | |
#---------------------------- | |
SSH_ENV="$HOME/.ssh/environment" | |
function run_ssh_env { | |
. "${SSH_ENV}" > /dev/null | |
} | |
function start_ssh_agent { |
By Jonathan Klughertz
Let's say you have already added/committed some files to your git repository and you then add them to your .gitignore; these files will still be present in your repository index. This article we will see how to get rid of them.
Before proceeding, make sure all your changes are committed, including your .gitignore
file.
flock -xn /tmp/laravel_queues.lockfile -c "/usr/local/bin/php -dextension=/usr/local/php74/lib/php/extensions/imagick.so /home/customer/project/artisan queue:work" |
let styles: [UIFont.TextStyle] = [ | |
// iOS 11 | |
.largeTitle, | |
// iOS 9 | |
.title1, .title2, .title3, .callout, | |
// iOS 7 | |
.headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
] | |
for style in styles { |
- Check `bind-address` in MySQL configuration | |
- Check database user if is allowed for any host (%) or specific to host trying to connect | |
- Check firewall if port is exposed |