bonethug 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/config/deploy.rb +6 -0
- data/lib/bonethug/version.rb +1 -1
- data/scripts/ubuntu_setup.sh +87 -0
- data/skel/base/.gitignore +7 -21
- data/skel/base/README.md +14 -4
- data/skel/base/public/favicon.ico +0 -0
- data/skel/project_types/rails4/Gemfile +52 -30
- data/skel/project_types/rails4/app/assets/fonts/.keep +0 -0
- data/skel/project_types/rails4/app/assets/images/.keep +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-114x114.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-120x120.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-144x144.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-152x152.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-57x57.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-60x60.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-72x72.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-76x76.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon.png +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/favicon.ico +0 -0
- data/skel/project_types/rails4/app/assets/images/favicons/iconifier-readme.txt +30 -0
- data/skel/project_types/rails4/app/assets/javascripts/application.js +4 -0
- data/skel/project_types/rails4/app/assets/javascripts/lte-ie8-shims.js +2 -0
- data/skel/project_types/rails4/app/assets/javascripts/main.js.coffee +5 -0
- data/skel/project_types/rails4/app/assets/stylesheets/application.css.scss +1 -0
- data/skel/project_types/rails4/app/assets/stylesheets/main.scss +0 -0
- data/skel/project_types/rails4/app/controllers/errors_controller.rb +9 -0
- data/skel/project_types/rails4/app/helpers/application_helper.rb +13 -0
- data/skel/project_types/rails4/app/views/application/index.html.erb +0 -0
- data/skel/project_types/rails4/app/views/errors/not_found.html.erb +18 -0
- data/skel/project_types/rails4/app/views/errors/server_error.html.erb +15 -0
- data/skel/project_types/rails4/app/views/layouts/application.html.erb +61 -0
- data/skel/project_types/rails4/config/application.rb +28 -0
- data/skel/project_types/rails4/config/environments/development.rb +73 -0
- data/skel/project_types/rails4/config/environments/production.rb +124 -0
- data/skel/project_types/rails4/config/environments/staging.rb +124 -0
- data/skel/project_types/rails4/config/environments/test.rb +36 -0
- data/skel/project_types/rails4/config/routes.rb +12 -0
- data/skel/project_types/silverstripe3/.bowerrc +3 -0
- data/skel/project_types/silverstripe3/.gitignore +3 -1
- data/skel/project_types/silverstripe3/README.md +135 -0
- data/skel/project_types/silverstripe3/bower.json +15 -0
- data/skel/skel.yml +6 -0
- metadata +36 -6
- data/skel/base/public/apple-touch-icon-114x114-precomposed.png +0 -0
- data/skel/base/public/apple-touch-icon-72x72-precomposed.png +0 -0
- data/skel/base/public/apple-touch-icon.png +0 -0
- data/skel/base/public/favicon.png +0 -0
data/config/deploy.rb
CHANGED
@@ -43,6 +43,9 @@ vhost = deploy.get('project_slug') + '_' + env
|
|
43
43
|
# composer?
|
44
44
|
use_composer = ['silverstripe','silverstripe3','drupal','php'].include? deploy.get('project_type')
|
45
45
|
|
46
|
+
# composer?
|
47
|
+
use_bower = ['silverstripe','silverstripe3','drupal','php'].include? deploy.get('project_type')
|
48
|
+
|
46
49
|
# directories we need to track
|
47
50
|
resources += ['backups']
|
48
51
|
# resources.push 'vendor' if use_composer
|
@@ -180,6 +183,9 @@ task :deploy => :environment do
|
|
180
183
|
# update composer
|
181
184
|
queue! %[php #{deploy_to}/shared/composer.phar install] if use_composer
|
182
185
|
|
186
|
+
# update bower
|
187
|
+
queue! %[cd #{deploy_to}/current && bower install] if use_bower
|
188
|
+
|
183
189
|
# build the vhosts
|
184
190
|
vh_cnf = conf.get('apache.'+env)
|
185
191
|
|
data/lib/bonethug/version.rb
CHANGED
@@ -0,0 +1,87 @@
|
|
1
|
+
# /bin/bash
|
2
|
+
|
3
|
+
# -----------------------------------------------------
|
4
|
+
# install native stuff
|
5
|
+
# -----------------------------------------------------
|
6
|
+
|
7
|
+
# update
|
8
|
+
sudo apt-get update && sudo apt-get upgrade
|
9
|
+
|
10
|
+
# install
|
11
|
+
|
12
|
+
# dev headers
|
13
|
+
sudo apt-get install libcurl4-openssl-dev libssl-dev apache2-threaded-dev libapr1-dev libaprutil1-dev libapr1-dev libaprutil1-dev
|
14
|
+
sudo apt-get install libmysqlclient-dev libmagickwand-dev libsqlite3-dev
|
15
|
+
|
16
|
+
# regular packages
|
17
|
+
sudo apt-get install apache2-mpm-worker
|
18
|
+
sudo apt-get install curl libapache2-mod-fastcgi php5-fpm php5 php5-cli php5-curl php5-gd php5-imagick php-apc php5-mysql
|
19
|
+
sudo apt-get install mysql-server mysql-client sqlite3
|
20
|
+
sudo apt-get install imagemagick
|
21
|
+
sudo apt-get install phpmyadmin
|
22
|
+
sudo apt-get install sshpass
|
23
|
+
sudo apt-get install git ruby1.9.3 wkhtmltopdf nodejs npm
|
24
|
+
|
25
|
+
|
26
|
+
# -----------------------------------------------------
|
27
|
+
# Configure stuff
|
28
|
+
# -----------------------------------------------------
|
29
|
+
|
30
|
+
# unix socket
|
31
|
+
# echo "
|
32
|
+
# <IfModule mod_fastcgi.c>
|
33
|
+
# AddHandler php5-fcgi .php
|
34
|
+
# Action php5-fcgi /php5-fcgi
|
35
|
+
# Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
|
36
|
+
# FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
|
37
|
+
# </IfModule>
|
38
|
+
# " > /etc/apache2/conf.d/php-fpm.conf
|
39
|
+
# sed -i -e "s/listen = \/var\/run\/php5-fpm.sock\/listen = 127.0.0.1:9000/g" /etc/php5/fpm/pool.d/www.conf
|
40
|
+
|
41
|
+
# TCP
|
42
|
+
echo "
|
43
|
+
<IfModule mod_fastcgi.c>
|
44
|
+
AddHandler php5-fcgi .php
|
45
|
+
Action php5-fcgi /php5-fcgi
|
46
|
+
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
|
47
|
+
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -idle-timeout 250 -pass-header Authorization
|
48
|
+
</IfModule>
|
49
|
+
" > /etc/apache2/conf.d/php-fpm.conf
|
50
|
+
|
51
|
+
# Apache
|
52
|
+
# ------
|
53
|
+
|
54
|
+
# modules
|
55
|
+
sudo a2enmod actions fastcgi alias rewrite headers
|
56
|
+
|
57
|
+
# phpmyadmin
|
58
|
+
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
# -----------------------------------------------------
|
63
|
+
# Install Gems
|
64
|
+
# -----------------------------------------------------
|
65
|
+
|
66
|
+
# install some gems - yes gem1.9.3 - wtf
|
67
|
+
sudo gem1.9.3 install mina bundler whenever astrails-safe
|
68
|
+
|
69
|
+
# install passenger
|
70
|
+
sudo gem1.9.3 install passenger
|
71
|
+
sudo passenger-install-apache2-module
|
72
|
+
touch /etc/apache2/mods-available/passenger.load
|
73
|
+
touch /etc/apache2/mods-available/passenger.conf
|
74
|
+
|
75
|
+
# -----------------------------------------------------
|
76
|
+
# Node.js related
|
77
|
+
# -----------------------------------------------------
|
78
|
+
|
79
|
+
npm install bower -g
|
80
|
+
|
81
|
+
# -----------------------------------------------------
|
82
|
+
# Restart stuff
|
83
|
+
# -----------------------------------------------------
|
84
|
+
|
85
|
+
|
86
|
+
sudo service apache2 restart
|
87
|
+
sudo /etc/init.d/php5-fpm restart
|
data/skel/base/.gitignore
CHANGED
@@ -1,22 +1,8 @@
|
|
1
1
|
# project framework
|
2
|
-
|
3
|
-
vendor
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
composer.phar
|
10
|
-
|
11
|
-
# components tracked by composer
|
12
|
-
public/silverstripe-cache
|
13
|
-
public/themes/simple
|
14
|
-
public/vendor
|
15
|
-
public/assets/*
|
16
|
-
public/bootstrap_forms
|
17
|
-
public/cms
|
18
|
-
public/framework
|
19
|
-
public/html5
|
20
|
-
public/widgets
|
21
|
-
public/compass
|
22
|
-
composer.phar
|
2
|
+
/.bundle
|
3
|
+
/vendor
|
4
|
+
/logs/*
|
5
|
+
/backups/*
|
6
|
+
/db_dumps
|
7
|
+
/tmp/*
|
8
|
+
/vendor/ruby
|
data/skel/base/README.md
CHANGED
@@ -8,7 +8,7 @@ Requirements
|
|
8
8
|
|
9
9
|
- Ruby 1.9.3 +
|
10
10
|
|
11
|
-
- PHP 5.3 +
|
11
|
+
- PHP 5.3 + (if using a php based project skeleton)
|
12
12
|
|
13
13
|
- Linux / OSX
|
14
14
|
|
@@ -44,13 +44,14 @@ Set Up
|
|
44
44
|
|
45
45
|
|
46
46
|
|
47
|
-
1. If you are windows you'll need some better unix command support
|
47
|
+
1. If you are windows you'll need some better unix command support. Make usre
|
48
|
+
you install git for windows and this also helps:
|
48
49
|
http://www.robvanderwoude.com/unixports.php
|
49
50
|
|
50
51
|
2. Firstly you need an MAMP / LAMP / WAMP etc stack, ruby 1.9.3 and curl for
|
51
52
|
composer, if you're on windows there's an installer for composer
|
52
53
|
|
53
|
-
3. You need to have bundler and composer installed
|
54
|
+
3. You need to have bundler and composer (for PHP) installed
|
54
55
|
|
55
56
|
|
56
57
|
|
@@ -76,7 +77,7 @@ Set Up
|
|
76
77
|
|
77
78
|
3. run:
|
78
79
|
|
79
|
-
`bundle install
|
80
|
+
`bundle install -–path vendor`
|
80
81
|
|
81
82
|
`php composer.phar install`
|
82
83
|
|
@@ -102,4 +103,13 @@ This only works on \*nix based OSes
|
|
102
103
|
|
103
104
|
|
104
105
|
|
106
|
+
### Other Commands and more info
|
107
|
+
|
108
|
+
|
109
|
+
<https://github.com/azt3k/bonethug>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
105
115
|
|
Binary file
|
@@ -1,44 +1,66 @@
|
|
1
|
-
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
3
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
4
|
+
gem 'rails', '4.0.0.rc2'
|
4
5
|
|
5
|
-
|
6
|
-
gem '
|
7
|
-
gem 'whenever', github: 'javan/whenever'
|
8
|
-
gem 'bonethug'
|
6
|
+
# Use sqlite3 as the database for Active Record
|
7
|
+
gem 'sqlite3'
|
9
8
|
|
10
|
-
|
9
|
+
# Use SCSS for stylesheets
|
10
|
+
gem 'sass-rails', '~> 4.0.0.rc2'
|
11
11
|
|
12
|
-
#
|
13
|
-
|
14
|
-
group :assets do
|
15
|
-
gem 'sass-rails'
|
16
|
-
gem 'compass-rails'
|
17
|
-
gem 'coffee-rails'
|
18
|
-
gem 'uglifier'
|
19
|
-
gem "therubyracer", :require => 'v8', :platforms => :ruby
|
20
|
-
end
|
12
|
+
# bourbon mixin lib
|
13
|
+
gem 'bourbon'
|
21
14
|
|
22
|
-
#
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
# Use Uglifier as compressor for JavaScript assets
|
16
|
+
gem 'uglifier', '>= 1.3.0'
|
17
|
+
|
18
|
+
# Use CoffeeScript for .js.coffee assets and views
|
19
|
+
gem 'coffee-rails', '~> 4.0.0'
|
27
20
|
|
21
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
22
|
+
gem 'therubyracer', platforms: :ruby
|
23
|
+
|
24
|
+
# slim templates
|
25
|
+
gem 'slim-rails'
|
26
|
+
|
27
|
+
# JS libraries
|
28
28
|
gem 'jquery-rails'
|
29
|
-
gem 'jquery-ui-rails'
|
30
|
-
gem 'bootstrap-sass'
|
31
29
|
gem 'modernizr-rails'
|
32
|
-
gem '
|
33
|
-
gem '
|
30
|
+
gem 'selectivizr-rails'
|
31
|
+
gem 'respond-rails'
|
32
|
+
|
33
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
34
|
+
gem 'turbolinks'
|
35
|
+
|
36
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
37
|
+
gem 'jbuilder', '~> 1.2'
|
34
38
|
|
35
|
-
|
39
|
+
group :doc do
|
40
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
41
|
+
gem 'sdoc', require: false
|
42
|
+
end
|
43
|
+
|
44
|
+
# Use debugger
|
45
|
+
gem 'debugger', group: [:development, :test]
|
46
|
+
|
47
|
+
# validation
|
48
|
+
gem 'honeypot-captcha'
|
49
|
+
|
50
|
+
# deployment etc
|
51
|
+
gem "mina", github: "nadarei/mina"
|
52
|
+
gem "astrails-safe", github: "astrails/safe"
|
53
|
+
gem "whenever", github: "javan/whenever"
|
54
|
+
gem "bonethug"
|
55
|
+
|
56
|
+
# force gems with native extensions to use the versions that have compiled components from the system gems
|
36
57
|
if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
|
58
|
+
|
59
|
+
# rmagick craps out when installed via bundler on windows
|
60
|
+
gem 'rmagick', '2.13.2', :path => "C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2"
|
37
61
|
gem 'mysql2', '0.3.11'
|
62
|
+
|
38
63
|
else
|
64
|
+
gem 'rmagick', '2.13.2'
|
39
65
|
gem 'mysql2'
|
40
66
|
end
|
41
|
-
|
42
|
-
# To use ActiveModel has_secure_password
|
43
|
-
gem 'bcrypt-ruby'
|
44
|
-
gem 'cancan'
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
Thanks for using iconifier.net to create Apple icon and favicon files for your website. See http://iconifier.net/readme for the latest information.
|
3
|
+
|
4
|
+
Most browsers will find the Apple icons in the root folder of your website. Add the following HTML to your page if necessary to specify other locations, remembering to include the correct path:
|
5
|
+
|
6
|
+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
7
|
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
8
|
+
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" />
|
9
|
+
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png" />
|
10
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
|
11
|
+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" />
|
12
|
+
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />
|
13
|
+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" />
|
14
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" />
|
15
|
+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" />
|
16
|
+
|
17
|
+
Most browsers will find the favicon file in the root folder of your website but there are some exceptions:
|
18
|
+
|
19
|
+
1. On Joomla websites, copy the favicon.ico to your active template folder at: /templates/[your_template_name].
|
20
|
+
|
21
|
+
2. On WordPress websites you may need to upload the favicon.ico file to your current theme's main folder as well as your website root folder. For more details, see http://codex.wordpress.org/Creating_a_Favicon.
|
22
|
+
|
23
|
+
3. On Drupal websites, navigate to the admin/build/themes/settings/[your_theme_name] page in the admin area of the site and choose the favicon.ico file in the 'Shortcut icon settings' section of the theme configuration page and upload the file. For more details, see the official Drupal favicon changing instructions at: http://drupal.org/node/362265
|
24
|
+
|
25
|
+
I'm very grateful to Chris Jean for sharing his excellent PHP-ICO tool which can now be found on GitHub at https://github.com/chrisbliss18/php-ico. PHP-ICO enables favicon files to be created with PHP and the GD library only.
|
26
|
+
|
27
|
+
If you find this tool useful, please Tweet, Share, Like, +1 and if you are really keen, include attribution in your humans.txt file! Thanks.
|
28
|
+
|
29
|
+
iconifier.net is provided for free by Webilicious® Web Design and Development Services - Joomla!® website creation, maintainance and security specialists - http://webilicious.com.au.
|
30
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'main.scss';
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module ApplicationHelper
|
2
|
+
|
3
|
+
def image_absolute_url(source)
|
4
|
+
# this should work, but there's something funky going on with the asset paths
|
5
|
+
host = Rails.application.routes.default_url_options[:host]
|
6
|
+
path = ActionController::Base.helpers.asset_path(source, type: :image)
|
7
|
+
path = path.gsub(host,'')
|
8
|
+
path = (host + path).gsub('//','/')
|
9
|
+
'http://' + path
|
10
|
+
# 'http://' + Rails.application.routes.default_url_options[:host] + '/assets/' + source
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<header class="masthead">
|
2
|
+
<div class="logo">
|
3
|
+
<a href="http://www.unitec.ac.nz" target="_blank"><%= image_tag "logo.png", alt: "Unitec logo" %></a>
|
4
|
+
</div>
|
5
|
+
<div class="intro">
|
6
|
+
<h1>Sorry</h1>
|
7
|
+
<h1 class="small">The page cannot be found</h1>
|
8
|
+
<p>
|
9
|
+
Please try the following
|
10
|
+
</p>
|
11
|
+
</div>
|
12
|
+
</header>
|
13
|
+
<div class="main">
|
14
|
+
<ul>
|
15
|
+
<li>If you typed the page address in the address bar, make sure that it is spelled correctly.</li>
|
16
|
+
<li>Click the Back button in your browser to try another link.</li>
|
17
|
+
</ul>
|
18
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<header class="masthead">
|
2
|
+
<div class="logo">
|
3
|
+
<a href="http://www.unitec.ac.nz" target="_blank"><%= image_tag "logo.png", alt: "Unitec logo" %></a>
|
4
|
+
</div>
|
5
|
+
<div class="intro">
|
6
|
+
<h1>Sorry</h1>
|
7
|
+
<h1 class="small">Something unexpected has happened</h1>
|
8
|
+
<p>
|
9
|
+
Please use your back button in your browser and try again.
|
10
|
+
</p>
|
11
|
+
</div>
|
12
|
+
</header>
|
13
|
+
<div class="main">
|
14
|
+
|
15
|
+
</div>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]><html class="ie6" lang="en"><![endif]-->
|
3
|
+
<!--[if IE 7]><html class="ie7" lang="en"><![endif]-->
|
4
|
+
<!--[if IE 8]><html class="ie8" lang="en"><![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
|
8
|
+
<meta charset="utf-8">
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
10
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
11
|
+
<%= csrf_meta_tags %>
|
12
|
+
|
13
|
+
<!-- Icons -->
|
14
|
+
<%= favicon_link_tag 'favicons/favicon.ico', rel: 'shortcut icon', type: 'image/x-icon' %>
|
15
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon.png', rel: 'apple-touch-icon', type: 'image/png' %>
|
16
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon-57x57.png', rel: 'apple-touch-icon', sizes: '57x57', type: 'image/png' %>
|
17
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon-72x72.png', rel: 'apple-touch-icon', sizes: '72x72', type: 'image/png' %>
|
18
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon-114x114.png', rel: 'apple-touch-icon', sizes: '114x114', type: 'image/png' %>
|
19
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon-120x120.png', rel: 'apple-touch-icon', sizes: '120x120', type: 'image/png' %>
|
20
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon-144x144.png', rel: 'apple-touch-icon', sizes: '144x144', type: 'image/png' %>
|
21
|
+
<%= favicon_link_tag 'favicons/apple-touch-icon-152x152.png', rel: 'apple-touch-icon', sizes: '152x152', type: 'image/png' %>
|
22
|
+
|
23
|
+
<title>Title</title>
|
24
|
+
|
25
|
+
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
26
|
+
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
27
|
+
|
28
|
+
<!--[if (gte IE 6)&(lte IE 8)]>
|
29
|
+
<%= javascript_include_tag "lte-ie8-shims", "data-turbolinks-track" => true %>
|
30
|
+
<noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
|
31
|
+
<![endif]-->
|
32
|
+
|
33
|
+
<script>
|
34
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
35
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
36
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
37
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
38
|
+
|
39
|
+
ga('create', 'UA-197000-18', 'unitec.ac.nz');
|
40
|
+
ga('send', 'pageview');
|
41
|
+
|
42
|
+
</script>
|
43
|
+
|
44
|
+
<%= javascript_include_tag "modernizr", "data-turbolinks-track" => true %>
|
45
|
+
|
46
|
+
</head>
|
47
|
+
<body>
|
48
|
+
|
49
|
+
<%= yield %>
|
50
|
+
|
51
|
+
<footer>
|
52
|
+
<p>
|
53
|
+
© 2013 Unitec Copyright. All rights reserved.
|
54
|
+
<a target="_blank" href="http://www.unitec.ac.nz/privacy-information.cfm">Privacy policy</a>.
|
55
|
+
<a target="_blank" href="http://www.unitec.ac.nz/terms-of-use.cfm">Terms of use</a>.
|
56
|
+
</p>
|
57
|
+
</footer>
|
58
|
+
|
59
|
+
</body>
|
60
|
+
|
61
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
# Require the gems listed in Gemfile, including any gems
|
6
|
+
# you've limited to :test, :development, or :production.
|
7
|
+
Bundler.require(:default, Rails.env)
|
8
|
+
|
9
|
+
module BonethugRails4Project
|
10
|
+
class Application < Rails::Application
|
11
|
+
|
12
|
+
# Settings in config/environments/* take precedence over those specified here.
|
13
|
+
# Application configuration should go into files in config/initializers
|
14
|
+
# -- all .rb files in that directory are automatically loaded.
|
15
|
+
|
16
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
17
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
18
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
19
|
+
|
20
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
21
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
22
|
+
# config.i18n.default_locale = :de
|
23
|
+
|
24
|
+
# Register this app as the application responsible for showing error pages
|
25
|
+
config.exceptions_app = self.routes
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bonethug/conf'
|
3
|
+
|
4
|
+
UnitecGraduationMicrosite::Application.configure do
|
5
|
+
|
6
|
+
# load up the universal config
|
7
|
+
cnf = Bonethug::Conf.new
|
8
|
+
mail = cnf.get 'mail.postmark.development'
|
9
|
+
|
10
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
11
|
+
|
12
|
+
# In the development environment your application's code is reloaded on
|
13
|
+
# every request. This slows down response time but is perfect for development
|
14
|
+
# since you don't have to restart the web server when you make code changes.
|
15
|
+
config.cache_classes = false
|
16
|
+
|
17
|
+
# Do not eager load code on boot.
|
18
|
+
config.eager_load = false
|
19
|
+
|
20
|
+
# Show full error reports and disable caching.
|
21
|
+
config.consider_all_requests_local = true
|
22
|
+
config.action_controller.perform_caching = false
|
23
|
+
|
24
|
+
# Don't care if the mailer can't send.
|
25
|
+
config.action_mailer.raise_delivery_errors = false
|
26
|
+
|
27
|
+
# Print deprecation notices to the Rails logger.
|
28
|
+
config.active_support.deprecation = :log
|
29
|
+
|
30
|
+
# Raise an error on page load if there are pending migrations
|
31
|
+
config.active_record.migration_error = :page_load
|
32
|
+
|
33
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
34
|
+
# This option may cause significant delays in view rendering with a large
|
35
|
+
# number of complex assets.
|
36
|
+
config.assets.debug = true
|
37
|
+
|
38
|
+
# Add the fonts path
|
39
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
40
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'images')
|
41
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'images', 'favicon')
|
42
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'javascripts')
|
43
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'stylesheets')
|
44
|
+
|
45
|
+
# Precompile additional assets
|
46
|
+
config.assets.precompile += %w( .svg .eot .woff .ttf .otf .jpg .png .gif .ico modernizr.js lte-ie8-shims.js application.css application.js )
|
47
|
+
|
48
|
+
# mail conf
|
49
|
+
config.mail_default_from = mail.get 'default_from.email'
|
50
|
+
|
51
|
+
config.action_mailer.perform_deliveries = true
|
52
|
+
config.action_mailer.raise_delivery_errors = true
|
53
|
+
|
54
|
+
# config.action_mailer.delivery_method = :smtp
|
55
|
+
# config.action_mailer.smtp_settings = {
|
56
|
+
# :address => mail.get('server'),
|
57
|
+
# :port => mail.get('port'),
|
58
|
+
# :domain => mail.get('domain'),
|
59
|
+
# :user_name => mail.get('user'),
|
60
|
+
# :password => mail.get('pass'),
|
61
|
+
# :authentication => 'plain',
|
62
|
+
# :enable_starttls_auto => mail.get('secure').to_s == 'tls' ? true : false
|
63
|
+
# }
|
64
|
+
|
65
|
+
config.action_mailer.default_url_options = { host: mail.get('default_url_options.host') }
|
66
|
+
config.action_mailer.delivery_method = :postmark
|
67
|
+
config.action_mailer.postmark_settings = { api_key: mail.get('postmark_settings.api_key') }
|
68
|
+
config.action_mailer.asset_host = mail.get 'asset_host'
|
69
|
+
|
70
|
+
# host for url helpers
|
71
|
+
routes.default_url_options[:host] = cnf.get('apache.development.server_name')
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bonethug/conf'
|
3
|
+
|
4
|
+
UnitecGraduationMicrosite::Application.configure do
|
5
|
+
|
6
|
+
# load up the universal config
|
7
|
+
cnf = Bonethug::Conf.new
|
8
|
+
mail = cnf.get 'mail.smtp.production'
|
9
|
+
|
10
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
11
|
+
|
12
|
+
# Code is not reloaded between requests.
|
13
|
+
config.cache_classes = true
|
14
|
+
|
15
|
+
# Eager load code on boot. This eager loads most of Rails and
|
16
|
+
# your application in memory, allowing both thread web servers
|
17
|
+
# and those relying on copy on write to perform better.
|
18
|
+
# Rake tasks automatically ignore this option for performance.
|
19
|
+
config.eager_load = true
|
20
|
+
|
21
|
+
# Full error reports are disabled and caching is turned on.
|
22
|
+
config.consider_all_requests_local = false
|
23
|
+
config.action_controller.perform_caching = true
|
24
|
+
|
25
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
26
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
27
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
28
|
+
# config.action_dispatch.rack_cache = true
|
29
|
+
|
30
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
31
|
+
config.serve_static_assets = true
|
32
|
+
|
33
|
+
# Compress JavaScripts and CSS.
|
34
|
+
config.assets.js_compressor = :uglifier
|
35
|
+
config.assets.css_compressor = :sass
|
36
|
+
|
37
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
38
|
+
config.assets.compile = false
|
39
|
+
|
40
|
+
# Generate digests for assets URLs.
|
41
|
+
config.assets.digest = true
|
42
|
+
|
43
|
+
# Version of your assets, change this if you want to expire all your assets.
|
44
|
+
config.assets.version = '1.5'
|
45
|
+
|
46
|
+
# Add the fonts path
|
47
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
48
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'images')
|
49
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'images', 'favicon')
|
50
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'javascripts')
|
51
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'stylesheets')
|
52
|
+
|
53
|
+
# Precompile additional assets
|
54
|
+
config.assets.precompile += %w( .svg .eot .woff .ttf .otf .jpg .png .gif .ico modernizr.js lte-ie8-shims.js application.css application.js )
|
55
|
+
|
56
|
+
# Specifies the header that your server uses for sending files.
|
57
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
58
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
59
|
+
|
60
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
61
|
+
# config.force_ssl = true
|
62
|
+
|
63
|
+
# Set to :debug to see everything in the log.
|
64
|
+
config.log_level = :info
|
65
|
+
|
66
|
+
# Prepend all log lines with the following tags.
|
67
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
68
|
+
|
69
|
+
# Use a different logger for distributed setups.
|
70
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
71
|
+
|
72
|
+
# Use a different cache store in production.
|
73
|
+
# config.cache_store = :mem_cache_store
|
74
|
+
|
75
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
76
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
77
|
+
|
78
|
+
# Precompile additional assets.
|
79
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
80
|
+
# config.assets.precompile += %w( search.js )
|
81
|
+
|
82
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
83
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
84
|
+
# config.action_mailer.raise_delivery_errors = false
|
85
|
+
|
86
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
87
|
+
# the I18n.default_locale when a translation can not be found).
|
88
|
+
config.i18n.fallbacks = true
|
89
|
+
|
90
|
+
# Send deprecation notices to registered listeners.
|
91
|
+
config.active_support.deprecation = :notify
|
92
|
+
|
93
|
+
# Disable automatic flushing of the log to improve performance.
|
94
|
+
# config.autoflush_log = false
|
95
|
+
|
96
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
97
|
+
config.log_formatter = ::Logger::Formatter.new
|
98
|
+
|
99
|
+
# mail conf
|
100
|
+
config.mail_default_from = mail.get 'default_from.email'
|
101
|
+
|
102
|
+
config.action_mailer.perform_deliveries = true
|
103
|
+
config.action_mailer.raise_delivery_errors = true
|
104
|
+
|
105
|
+
config.action_mailer.delivery_method = :smtp
|
106
|
+
config.action_mailer.smtp_settings = {
|
107
|
+
:address => mail.get('server'),
|
108
|
+
:port => mail.get('port'),
|
109
|
+
:domain => mail.get('domain'),
|
110
|
+
:user_name => mail.get('user'),
|
111
|
+
:password => mail.get('pass'),
|
112
|
+
:authentication => 'plain',
|
113
|
+
:enable_starttls_auto => mail.get('secure').to_s == 'tls' ? true : false
|
114
|
+
}
|
115
|
+
|
116
|
+
# config.action_mailer.default_url_options = { host: mail.get('default_url_options.host') }
|
117
|
+
# config.action_mailer.delivery_method = :postmark
|
118
|
+
# config.action_mailer.postmark_settings = { api_key: mail.get('postmark_settings.api_key') }
|
119
|
+
# config.action_mailer.asset_host = mail.get 'asset_host'
|
120
|
+
|
121
|
+
# host for url helpers
|
122
|
+
routes.default_url_options[:host] = cnf.get('apache.production.server_name')
|
123
|
+
|
124
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bonethug/conf'
|
3
|
+
|
4
|
+
UnitecGraduationMicrosite::Application.configure do
|
5
|
+
|
6
|
+
# load up the universal config
|
7
|
+
cnf = Bonethug::Conf.new
|
8
|
+
mail = cnf.get 'mail.smtp.staging'
|
9
|
+
|
10
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
11
|
+
|
12
|
+
# Code is not reloaded between requests.
|
13
|
+
config.cache_classes = true
|
14
|
+
|
15
|
+
# Eager load code on boot. This eager loads most of Rails and
|
16
|
+
# your application in memory, allowing both thread web servers
|
17
|
+
# and those relying on copy on write to perform better.
|
18
|
+
# Rake tasks automatically ignore this option for performance.
|
19
|
+
config.eager_load = true
|
20
|
+
|
21
|
+
# Full error reports are disabled and caching is turned on.
|
22
|
+
config.consider_all_requests_local = false
|
23
|
+
config.action_controller.perform_caching = true
|
24
|
+
|
25
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
26
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
27
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
28
|
+
# config.action_dispatch.rack_cache = true
|
29
|
+
|
30
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
31
|
+
config.serve_static_assets = true
|
32
|
+
|
33
|
+
# Compress JavaScripts and CSS.
|
34
|
+
config.assets.js_compressor = :uglifier
|
35
|
+
config.assets.css_compressor = :sass
|
36
|
+
|
37
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
38
|
+
config.assets.compile = false
|
39
|
+
|
40
|
+
# Generate digests for assets URLs.
|
41
|
+
config.assets.digest = true
|
42
|
+
|
43
|
+
# Version of your assets, change this if you want to expire all your assets.
|
44
|
+
config.assets.version = '1.5'
|
45
|
+
|
46
|
+
# Add the fonts path
|
47
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
48
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'images')
|
49
|
+
config.assets.paths << Rails.root.join('app', 'assets', 'images', 'favicon')
|
50
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'javascripts')
|
51
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'stylesheets')
|
52
|
+
|
53
|
+
# Precompile additional assets
|
54
|
+
config.assets.precompile += %w( .svg .eot .woff .ttf .otf .jpg .png .gif .ico modernizr.js lte-ie8-shims.js application.css application.js )
|
55
|
+
|
56
|
+
# Specifies the header that your server uses for sending files.
|
57
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
58
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
59
|
+
|
60
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
61
|
+
# config.force_ssl = true
|
62
|
+
|
63
|
+
# Set to :debug to see everything in the log.
|
64
|
+
config.log_level = :info
|
65
|
+
|
66
|
+
# Prepend all log lines with the following tags.
|
67
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
68
|
+
|
69
|
+
# Use a different logger for distributed setups.
|
70
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
71
|
+
|
72
|
+
# Use a different cache store in production.
|
73
|
+
# config.cache_store = :mem_cache_store
|
74
|
+
|
75
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
76
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
77
|
+
|
78
|
+
# Precompile additional assets.
|
79
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
80
|
+
# config.assets.precompile += %w( search.js )
|
81
|
+
|
82
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
83
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
84
|
+
# config.action_mailer.raise_delivery_errors = false
|
85
|
+
|
86
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
87
|
+
# the I18n.default_locale when a translation can not be found).
|
88
|
+
config.i18n.fallbacks = true
|
89
|
+
|
90
|
+
# Send deprecation notices to registered listeners.
|
91
|
+
config.active_support.deprecation = :notify
|
92
|
+
|
93
|
+
# Disable automatic flushing of the log to improve performance.
|
94
|
+
# config.autoflush_log = false
|
95
|
+
|
96
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
97
|
+
config.log_formatter = ::Logger::Formatter.new
|
98
|
+
|
99
|
+
# mail conf
|
100
|
+
config.mail_default_from = mail.get 'default_from.email'
|
101
|
+
|
102
|
+
config.action_mailer.perform_deliveries = true
|
103
|
+
config.action_mailer.raise_delivery_errors = true
|
104
|
+
|
105
|
+
config.action_mailer.delivery_method = :smtp
|
106
|
+
config.action_mailer.smtp_settings = {
|
107
|
+
:address => mail.get('server'),
|
108
|
+
:port => mail.get('port'),
|
109
|
+
:domain => mail.get('domain'),
|
110
|
+
:user_name => mail.get('user'),
|
111
|
+
:password => mail.get('pass'),
|
112
|
+
:authentication => 'plain',
|
113
|
+
:enable_starttls_auto => mail.get('secure').to_s == 'tls' ? true : false
|
114
|
+
}
|
115
|
+
|
116
|
+
# config.action_mailer.default_url_options = { host: mail.get('default_url_options.host') }
|
117
|
+
# config.action_mailer.delivery_method = :postmark
|
118
|
+
# config.action_mailer.postmark_settings = { api_key: mail.get('postmark_settings.api_key') }
|
119
|
+
# config.action_mailer.asset_host = mail.get 'asset_host'
|
120
|
+
|
121
|
+
# host for url helpers
|
122
|
+
routes.default_url_options[:host] = cnf.get('apache.staging.server_name')
|
123
|
+
|
124
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
UnitecGraduationMicrosite::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = "public, max-age=3600"
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
UnitecGraduationMicrosite::Application.routes.draw do
|
2
|
+
|
3
|
+
# You can have the root of your site routed with "root"
|
4
|
+
# root 'application#index'
|
5
|
+
root 'application#index'
|
6
|
+
|
7
|
+
#errors
|
8
|
+
match '/404', :to => 'errors#not_found', via: [:get, :post]
|
9
|
+
match '/422', :to => 'errors#server_error', via: [:get, :post]
|
10
|
+
match '/500', :to => 'errors#server_error', via: [:get, :post]
|
11
|
+
|
12
|
+
end
|
@@ -9,13 +9,15 @@
|
|
9
9
|
/composer.phar
|
10
10
|
.sass-cache
|
11
11
|
/public/assets/*
|
12
|
+
/public/vendor/*
|
13
|
+
/vendor/ruby
|
12
14
|
|
13
15
|
# components tracked by composer
|
14
16
|
/public/silverstripe-cache/*
|
15
|
-
/public/themes/simple
|
16
17
|
/public/bootstrap_forms
|
17
18
|
/public/cms
|
18
19
|
/public/abc-silverstripe
|
20
|
+
/public/abc-silverstripe-mailer
|
19
21
|
/public/framework
|
20
22
|
/public/html5
|
21
23
|
|
@@ -0,0 +1,135 @@
|
|
1
|
+
SilverStripe Bonethug Project Skeleton
|
2
|
+
======================================
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
Requirements
|
7
|
+
------------
|
8
|
+
|
9
|
+
- Ruby 1.9.3 +
|
10
|
+
|
11
|
+
- PHP 5.3 +
|
12
|
+
|
13
|
+
- Linux / OSX
|
14
|
+
|
15
|
+
- Apache
|
16
|
+
|
17
|
+
- MySQL 5.5 +
|
18
|
+
|
19
|
+
- Bundler
|
20
|
+
|
21
|
+
- Composer
|
22
|
+
|
23
|
+
- NPM
|
24
|
+
|
25
|
+
- Bower
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
Overview
|
30
|
+
--------
|
31
|
+
|
32
|
+
- Deployment handled with mina. see [https://github.com/nadarei/mina]
|
33
|
+
|
34
|
+
- Cron handled wtih whenever. [https://github.com/javan/whenever]
|
35
|
+
|
36
|
+
- Backups handled with astrails-safe. see [https://github.com/astrails/safe]
|
37
|
+
|
38
|
+
- Ruby dependency management handled with bundler. see
|
39
|
+
|
40
|
+
- Built on the Silverstripe framework, CMS and Installer - 3.1.x dev branch.
|
41
|
+
|
42
|
+
- PHP dpendency management handled with composer. see [https://packagist.org/]
|
43
|
+
|
44
|
+
- Javascript assets are managed via [https://github.com/bower/bower]
|
45
|
+
|
46
|
+
- Bower depends on node.js [http://nodejs.org] and NPM [https://npmjs.org]
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
Set Up
|
51
|
+
------
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
### Pre-requisites
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
1. If you are windows you'll need some better unix command support. Make usre
|
60
|
+
you install git for windows and this also helps:
|
61
|
+
http://www.robvanderwoude.com/unixports.php
|
62
|
+
|
63
|
+
2. Firstly you need an MAMP / LAMP / WAMP etc stack, ruby 1.9.3 and curl for
|
64
|
+
composer, and node.js / npm for bower. If you're on windows there's an
|
65
|
+
installer for composer, node.js and npm
|
66
|
+
|
67
|
+
3. You need to have bundler, composer and bower installed
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
**bundler**
|
72
|
+
|
73
|
+
`gem install bundler`
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
**composer**
|
78
|
+
|
79
|
+
`cd /path/to/project/root && curl -s http://getcomposer.org/installer | php`
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
**bower**
|
84
|
+
|
85
|
+
`npm install bower -g`
|
86
|
+
|
87
|
+
|
88
|
+
### Development
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
1. clone the repo, create the db, update config/cnf.yml if needed
|
93
|
+
|
94
|
+
2. Setup a vhost - look at the one defined in deploy.rb
|
95
|
+
|
96
|
+
3. run:
|
97
|
+
|
98
|
+
`bundle install -–path vendor`
|
99
|
+
|
100
|
+
`php composer.phar install`
|
101
|
+
|
102
|
+
`bower install`
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
### Deployment
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
This only works on \*nix based OSes
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
1. Setup the project
|
115
|
+
|
116
|
+
`bundle exec bonethug setup {staging|production}`
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
1. Deploy the project
|
121
|
+
|
122
|
+
`bundle exec bonethug deploy {staging|production}`
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
### Other Commands and more info
|
127
|
+
|
128
|
+
|
129
|
+
<https://github.com/azt3k/bonethug>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "bonethug/ss3-skel",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"authors": [
|
5
|
+
"azt3k <breaks.nz@gmail.com>"
|
6
|
+
],
|
7
|
+
"license": "MIT",
|
8
|
+
"private": true,
|
9
|
+
"dependencies": {
|
10
|
+
"jquery": "~1.10.2",
|
11
|
+
"modernizr": "~2.6.2",
|
12
|
+
"modernizr": "~1.0.2",
|
13
|
+
"respond": "~1.3.0"
|
14
|
+
}
|
15
|
+
}
|
data/skel/skel.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bonethug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -295,17 +295,14 @@ files:
|
|
295
295
|
- lib/bonethug/utils.rb
|
296
296
|
- lib/bonethug/version.rb
|
297
297
|
- lib/bonethug/watcher.rb
|
298
|
+
- scripts/ubuntu_setup.sh
|
298
299
|
- skel/base/.gitignore
|
299
300
|
- skel/base/Gemfile
|
300
301
|
- skel/base/README.md
|
301
302
|
- skel/base/config/example/.gitkeep
|
302
303
|
- skel/base/lib/.gitkeep
|
303
304
|
- skel/base/log/.gitkeep
|
304
|
-
- skel/base/public/apple-touch-icon-114x114-precomposed.png
|
305
|
-
- skel/base/public/apple-touch-icon-72x72-precomposed.png
|
306
|
-
- skel/base/public/apple-touch-icon.png
|
307
305
|
- skel/base/public/favicon.ico
|
308
|
-
- skel/base/public/favicon.png
|
309
306
|
- skel/base/public/robots.txt
|
310
307
|
- skel/project_types/drupal/.gitignore
|
311
308
|
- skel/project_types/drupal/composer.json
|
@@ -320,7 +317,40 @@ files:
|
|
320
317
|
- skel/project_types/rails3/README.md
|
321
318
|
- skel/project_types/rails4/Gemfile
|
322
319
|
- skel/project_types/rails4/README.md
|
320
|
+
- skel/project_types/rails4/app/assets/fonts/.keep
|
321
|
+
- skel/project_types/rails4/app/assets/images/.keep
|
322
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-114x114.png
|
323
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-120x120.png
|
324
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-144x144.png
|
325
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-152x152.png
|
326
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-57x57.png
|
327
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-60x60.png
|
328
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-72x72.png
|
329
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon-76x76.png
|
330
|
+
- skel/project_types/rails4/app/assets/images/favicons/apple-touch-icon.png
|
331
|
+
- skel/project_types/rails4/app/assets/images/favicons/favicon.ico
|
332
|
+
- skel/project_types/rails4/app/assets/images/favicons/iconifier-readme.txt
|
333
|
+
- skel/project_types/rails4/app/assets/javascripts/application.js
|
334
|
+
- skel/project_types/rails4/app/assets/javascripts/lte-ie8-shims.js
|
335
|
+
- skel/project_types/rails4/app/assets/javascripts/main.js.coffee
|
336
|
+
- skel/project_types/rails4/app/assets/stylesheets/application.css.scss
|
337
|
+
- skel/project_types/rails4/app/assets/stylesheets/main.scss
|
338
|
+
- skel/project_types/rails4/app/controllers/errors_controller.rb
|
339
|
+
- skel/project_types/rails4/app/helpers/application_helper.rb
|
340
|
+
- skel/project_types/rails4/app/views/application/index.html.erb
|
341
|
+
- skel/project_types/rails4/app/views/errors/not_found.html.erb
|
342
|
+
- skel/project_types/rails4/app/views/errors/server_error.html.erb
|
343
|
+
- skel/project_types/rails4/app/views/layouts/application.html.erb
|
344
|
+
- skel/project_types/rails4/config/application.rb
|
345
|
+
- skel/project_types/rails4/config/environments/development.rb
|
346
|
+
- skel/project_types/rails4/config/environments/production.rb
|
347
|
+
- skel/project_types/rails4/config/environments/staging.rb
|
348
|
+
- skel/project_types/rails4/config/environments/test.rb
|
349
|
+
- skel/project_types/rails4/config/routes.rb
|
350
|
+
- skel/project_types/silverstripe3/.bowerrc
|
323
351
|
- skel/project_types/silverstripe3/.gitignore
|
352
|
+
- skel/project_types/silverstripe3/README.md
|
353
|
+
- skel/project_types/silverstripe3/bower.json
|
324
354
|
- skel/project_types/silverstripe3/composer.json
|
325
355
|
- skel/project_types/silverstripe3/lib/ss_loadconf.php
|
326
356
|
- skel/project_types/silverstripe3/public/.htaccess
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|