This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name: lumen.sh | |
# Description: Automated setup of LEMP stack with Lumen framework | |
# Author: Shankar <[email protected]> | |
# Twitter handle: @psgganesh | |
# USAGE | |
# CURL or WGET the RAW URL of this file and run below two commands | |
# 1. chmod +x lumen.sh | |
# 2. sudo bash ./lumen.sh | |
# Check your browser with the IP address of the host machine and viola, you have lumen installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
listen 443 ssl; | |
root /var/www/lumen/public; | |
index index.php index.html index.htm; | |
server_name server_domain_or_IP; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name homestead.app; | |
root "/home/vagrant/Code/homestead/public"; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
NewerOlder