No description, website, or topics provided.
Python JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ec2
frontend
scrapers
scripts
server
.gitattributes
.gitignore
README.md
crontab.txt

README.md

PINULTIMATE

SSH to EC2:

ssh deploy@api.pinultimate.net

password: pinultimate

DEPLOY to EC2:

First time setup:

git remote remove deploy
git remote add deploy ssh://deploy@api.pinultimate.net/home/deploy/pinultimate.git

Then, whenever you want to deploy:

git push deploy master

Never deploy from any other branch other than master. The server will reject all non-fast-forward changes

Finally, ssh into the server to restart Apache so the new changes to the code are now available to the webserver

sudo service apache2 restart

SERVER-SIDE Development:

Install Homebrew & PIP:

/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
brew update
sudo easy_install pip

Django SETUP:

pip install django

MongoDB SETUP:

brew install mongodb
pip install pymongo
pip install mongoengine

MYSQL SETUP:

  1. INSTALL MYSQL:
brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
  1. START MYSQL:
mysql.server start
  1. STOP MYSQL:
mysql.server stop
  1. INSTALL MYSQL DRIVER:
pip install MySQL-python
  1. CREATE local pudev ACCOUNT:
mysql.server start
mysql -u root
  1. INITIALIZE DATABASE
CREATE DATABASE HEATMAPDB;
CREATE USER 'pudevs'@'localhost' IDENTIFIED BY 'pukey';
GRANT ALL ON HEATMAPDB.* TO 'pudevs'@'localhost';