- http://serverfault.com/questions/416787/nginx-403-forbidden-error-hosting-in-user-home-directory
- rails deploy with rvm, capistrano, uniron, nginx
This file contains 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
# Login as root | |
ssh root@domain | |
# Create deploy user | |
adduser <username> #Adds User with username given. Enter Password when Prompted. Other Details are Optional | |
# Add user to sudo group | |
usermod -g <groupname> <username> | |
# Add .ssh/authorized_keys for deploy user |
Following link provides required steps for setting up SSL on nginx:
nginx setup
server {
listen 80 default_server;
listen [::]:80 default_server;
return 301 https://$host$request_uri;
This file contains 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
const webpack = require('webpack'); | |
const nodeExternals = require('webpack-node-externals'); | |
const CompressionPlugin = require('compression-webpack-plugin') | |
const path = require('path'); | |
module.exports = { | |
entry: ['babel-polyfill', './handler.js'], | |
target: 'node', | |
externals: [nodeExternals()], | |
output: { |