Skip to content

Instantly share code, notes, and snippets.

View kamerk22's full-sized avatar
🔄
Lazy Loading

Kashyap Merai kamerk22

🔄
Lazy Loading
View GitHub Profile
@kamerk22
kamerk22 / lumen.conf
Last active August 21, 2018 17:49
Laravel or Lumen application inside sub directory nginx configuration with routing.
server {
listen 80;
server_name dev ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
location ~ \.php$ {
@kamerk22
kamerk22 / default.conf
Created June 25, 2017 06:15
Nginx Configuration running PHP7.0-FPM Fast CGI with phpmyadmin and MySQL, Reverse proxy with NodeJS application
server {
listen 80 default_server;
server_name dev ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
location ~ \.php$ {
@kamerk22
kamerk22 / pm2_deploy.sh
Last active July 4, 2017 05:56
Automatic pm2 deploy bash script run on production server as well as development server.
#!/bin/bash
#Author: Kashyap Merai | kashyapk62@gmail.com
# Variables
ch_1="pm2 Production Setup."
ch_2="pm2 Production Update."
ch_3="pm2 Production."
ch_4="pm2 Development Setup."
ch_5="pm2 Development."