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
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
require 'rubygems' | |
require 'factory_girl' | |
require 'spork' | |
require 'database_cleaner' | |
Spork.prefork do | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' |
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
#################################################### | |
# | |
# Name: rails application template | |
# Author: douhashi | |
# Usage: | |
# rails new your_app_name [-d mysql] -T --skip-bundle -m https://raw.github.com/gist/1188958 | |
# | |
#################################################### | |
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
class Setup < Thor | |
include Thor::Actions | |
APP_ROOT = File.dirname(__FILE__) + "../../../".freeze | |
PLUGINS = [:rspec, :cucumber, :simple_form, :devise].freeze | |
SUCCESS_NOTICE = <<-SUCCESS_TEXT | |
Successful install [[[Name]]]. | |
SUCCESS_TEXT |
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
autoload -U compinit | |
compinit | |
setopt auto_pushd | |
setopt auto_cd | |
setopt correct | |
setopt cdable_vars | |
## keybind |
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
#!/bin/sh | |
NGINX=nginx-1.1.14 | |
cd $NGINX \ | |
&& ./configure \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--pid-path=/var/run/nginx/nginx.pid \ | |
--lock-path=/var/lock/nginx.lock \ |
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
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/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
$unicorn_user = "app" | |
$unicorn_group = "app" | |
worker_processes 2 | |
working_directory '/var/rails/redmine' | |
listen "127.0.0.1:3100", :tcp_nopush => true | |
listen '/tmp/.unicorn_redmine.sock' | |
timeout 30 |
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
#!/bin/bash | |
# | |
# unicorn_rails_redmine Startup script for unicorn. | |
# | |
# chkconfig: - 85 15 | |
# description: redmine on unicorn start/stop script. | |
# | |
# | |
# set rvm environment valiables. |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
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
#! /bin/sh | |
### SETTINGS ################################################ | |
APP_NAME=app_name | |
APP_ROOT=/var/rails/$APP_NAME/curent | |
BACKUP_SOURCE_DIR=uploads | |
BACKUP_DEST=/backups/file | |
PERIOD=30 | |
############################################################# |
OlderNewer