Before must be installed this
Step #1
rails new project_name --skip-test-unit
Step #2
cd project_name
# This build script will build Ruby 2.0.0-p247. You will need su to | |
# root or sudo as required. | |
# This build tested against Debian 7.0 64-bit arch, installed from net-inst image. | |
# These aren't specifically Ruby deps; more for building software in general | |
# (you probably already have them) | |
apt-get install -y build-essential autoconf | |
# These deps will support common libraries like yaml and give you the best irb experience. |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
Before must be installed this
Step #1
rails new project_name --skip-test-unit
Step #2
cd project_name
#!/usr/bin/env bash | |
# Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`. | |
# Please modify the CONSTANT variables to fit your configurations. | |
# The script will start with config set by $PUMA_CONFIG_FILE by default | |
PUMA_CONFIG_FILE=config/puma.rb | |
PUMA_PID_FILE=tmp/pids/puma.pid | |
PUMA_SOCKET=tmp/sockets/puma.sock |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#Postgresql 9.2.1 Compilation instructions for Ubuntu 12.04 | |
#This will install Postgresql 9.2.1 into /usr/local/postgresql-9.2.1 | |
#This assumes that you have sudo provileges on the machine installing postgresql | |
#It should work by copying and pasting into the shell, I haven't tested it, I just summarized | |
#what I just did and it worked | |
#Get requirements | |
sudo apt-get install build-essential libreadline6-dev zlib1g-dev |
$VERBOSE = nil | |
require File.expand_path('../rooby', __FILE__) | |
Person = Rooby::Class.new 'Person' do | |
define :initialize do |name| | |
@name = name | |
end | |
define :name do |
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed. | |
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
# | |
# Deployment structure | |
# | |
# SERVER: | |
# /etc/init.d/nginx (1. nginx) | |
# /home/app/public_html/app_production/current (Capistrano directory) | |
# |
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core curl libssl-dev \ | |
libreadline5 libreadline5-dev \ | |
zlib1g zlib1g-dev \ | |
libmysqlclient-dev \ | |
libcurl4-openssl-dev \ | |
libxslt-dev libxml2-dev |
require 'rubygems' | |
require 'bcrypt' | |
require 'haml' | |
require 'sinatra' | |
enable :sessions | |
userTable = {} | |
helpers do |