This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
# Install Java 1.8 in CentOS/RHEL 6.X | |
sudo yum remove -y java-1.6.0-openjdk | |
wget --no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.rpm" \ | |
-O jdk-8-linux-x64.rpm | |
sudo rpm -Uvh jdk-8-linux-x64.rpm | |
sudo alternatives --install /usr/bin/java java /usr/java/jdk1.8.0/jre/bin/java 20000 | |
sudo alternatives --install /usr/bin/jar jar /usr/java/jdk1.8.0/bin/jar 20000 |
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
// Open (or create) the database | |
var open = indexedDB.open("MyDatabase", 1); | |
// Create the schema | |
open.onupgradeneeded = function() { | |
var db = open.result; | |
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
#!/bin/bash | |
########################################### | |
################# OPENRESTY ############### | |
########################################### | |
apt-get -y update | |
apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev libdrizzle-dev | |
wget https://openresty.org/download/drizzle7-2011.07.21.tar.gz | |
tar xzvf drizzle7-2011.07.21.tar.gz | |
cd drizzle7-2011.07.21/ | |
./configure --without-server |
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
rename = require('gulp-rename'), | |
notify = require('gulp-notify'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
markdown = require('gulp-markdown'), |
// Gulp 4 | |
var gulp = require('gulp'); | |
var using = require('gulp-using'); | |
var grep = require('gulp-grep'); | |
var changed = require('gulp-changed'); | |
var del = require('del'); | |
var coffee = require('gulp-coffee'); | |
var less = require('gulp-less'); | |
var coffeelint = require('gulp-coffeelint'); | |
var sourcemaps = require('gulp-sourcemaps'); |
module.exports = { | |
entry: "./public/javascripts/src/App.jsx", //entry point of your app | |
output: { | |
filename: "./public/javascripts/build/bundle.js" //output transpiled and compiled code | |
}, | |
module: { | |
loaders:[ | |
{ | |
test: /\.js[x]?$/, //list of extensions | |
exclude: /node_modules/, |
wget https://openresty.org/download/openresty-1.9.15.1.tar.gz | |
tar -xvf openresty-1.9.15.1.tar.gz | |
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make | |
cd openresty-1.9.15.1 | |
./configure --with-luajit | |
make | |
make install | |
cd .. |
language: node_js | |
node_js: | |
- '0.10' | |
install: npm run dev_install | |
env: | |
global: | |
secure: CODECLIMATE_TOKEN |