This sheet goes along with this SSH YouTube tutorial
$ ssh [email protected]
$ mkdir test
$ cd test
fields @message | filter @log like "$log_group" | filter @message like /(?i)$search/ | |
| filter @message not like "START RequestId" | |
| filter @message not like "END RequestId" | |
| filter @message not like "REPORT RequestId" | |
| filter @message not like "Starting FPM Process..." | |
| filter @message not like "Ensuring ready to start FPM" | |
| filter @message not like "Preparing to boot FPM" | |
| filter @message not like "NOTICE: ready to handle connections" |
$ ssh [email protected]
$ mkdir test
$ cd test
# image: smartapps/bitbucket-pipelines-debian-10 # php 7.3 | |
image: bitnami/laravel:8.6.9 # php 7.4 | |
pipelines: | |
branches: | |
master: | |
- step: | |
name: Deploy Test | |
deployment: test | |
script: |
Ubuntu 16.04
/etc/systemd/system/certbot.service
[Unit]
Description=Let's Encrypt renewal
[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf
to /usr/local/etc/nginx/
default.conf
and default-ssl.conf
to /usr/local/etc/nginx/sites-available
homebrew.mxcl.nginx.plist
to /Library/LaunchDaemons/
#! /bin/sh | |
sudo yum update -y | |
sudo yum install docker -y | |
sudo usermod -a -G docker ec2-user | |
sudo id ec2-user | |
sudo newgrp docker | |
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) | |
sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose | |
sudo chmod -v +x /usr/local/bin/docker-compose | |
sudo systemctl enable docker.service |