Skip to content

Instantly share code, notes, and snippets.

Avatar

Ruthger Idema ruthgeridema

View GitHub Profile
View forge-deploy-node
# stop script on error signal
set -e
# remove old deployment folders
if [ -d "/home/forge/deploy" ]; then
rm -R /home/forge/deploy
fi
if [ -d "/home/forge/backup" ]; then
rm -R /home/forge/backup
fi
@ruthgeridema
ruthgeridema / ssr-nginx
Created Mar 14, 2019
SSR Nginx Configuration
View ssr-nginx
# FORGE CONFIG (DO NOT REMOVE!)
include forge-conf/example.org/server;
location / {
expires epoch;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ruthgeridema
ruthgeridema / env.php.redis
Created Oct 15, 2018
Add Redis to Magento 2 | Local development with the Hypernode Docker container (Linux)
View env.php.redis
...
'cache' => [
'frontend' => [
'default' => [
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => [
'server' => '127.0.0.1',
'database' => 0,
'port' => '6379'
]
@ruthgeridema
ruthgeridema / .user.ini
Last active Oct 15, 2018
.user.ini | Local development with the Hypernode Docker container (Linux)
View .user.ini
xdebug.show_error_trace = 1
xdebug.remote_enable = 1
xdebug.remote_autostart =1
xdebug.remote_connect_back =1
xdebug.remote_host = 172.17.0.1
xdebug.remote_port = 9000
xdebug.scream = 0
xdebug.show_local_vars = 1
xdebug.idekey = PHPSTORM
xdebug.remote_addr_header = HTTP_X_REAL_IP
@ruthgeridema
ruthgeridema / Dockerfile
Created Oct 15, 2018
Dockerfile | Local development with the Hypernode Docker container (Linux)
View Dockerfile
FROM docker.hypernode.com/byteinternet/hypernode-docker:latest
MAINTAINER Ruthger Idema <ruthger.idema@guapa.nl>
RUN echo "app ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN apt-get update && apt-get install -y php-xdebug