Code Monkey home page Code Monkey logo

elane-and-blake's Introduction

My fiance and I are getting married, so I'm building us a wedding website.

Installation

I'm hosting this on EC2, so the setup looks like this:

Install Git

sudo apt-get install git

Install and configure apache (vhosts, permissions, etc?)

sudo apt-get install apache2

Edit your Apache config

sudo nano /etc/apache2/apache2.conf

Ensure the following config:

Include conf/extra/httpd-vhosts.conf

# Ensure that Apache listens on port 80
Listen 80

# All requests are virtual host requests (security? best practice?)
NameVirtualHost *:*

Enable proxy modules

sudo apt-get install libapache2-mod-proxy-html

sudo a2enmod proxy
sudo a2enmod proxy_http

Add a vhost entry for the site

cd /etc/apache2/sites-available
sudo touch elaneandblake.com
sudo nano elaneandblake.com

Add the following:

<VirtualHost *>
    DocumentRoot /var/www/elaneandblake.com
    
    ServerName elaneandblake.com
    ServerAlias www.elaneandblake.com
    
    ErrorLog "/var/log/apache2/elaneandblake.com/error_log"
    CustomLog "/var/log/apache2/elaneandblake.com/access_log" common
    
    # Forward requests to the Node app.
    ProxyPass / http://127.0.0.1:3000/
    ProxyPassReverse / http://127.0.0.1:3000/
</VirtualHost>

Create a symlink to sites-enabled

a2ensite elaneandblake.com

Create log files

Restart Apache

sudo /etc/init.d/apache2 restart



sudo apt-get install build-essential

Install Node

cd ~
git clone git://github.com/joyent/node.git
cd node
git checkout v0.8.15
./configure
make
sudo make install

Install NPM

cd ~
git clone https://github.com/isaacs/npm.git
cd npm
sudo make install

Clone repo

cd /var/www
sudo git clone git://github.com/blakehaswell/elane-and-blake.git elaneandblake.com

Install dependencies

cd elaneandblake.com
sudo npm install

Install Forever

sudo npm install forever -g

Start the app using Forever

forever start app.js

Install questions

  • Where should I be installing Node and NPM? It doesn't matter, make installs the compiled programs elsewhere
  • What is make? Do I need to install it? make is like rake, just for C (I think)
  • When installing Node, what do the lines ./configure and make do? ./configure builds the makefile
  • What's the deal with port forwarding? Best practice? Security? Use Apache in front of Node
  • Running the app – do I use forever? Is node app ok? Forever seems to be the go. sudo npm install -g forever

Update Instructions

Log into EC2 and:

cd /var/www/elaneandblake.com
git pull
forever restart app.js

elane-and-blake's People

Contributors

blakehaswell avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.