- 使用者可以登入 / 登出
- 使用者可以使用 Facebook 登入 https://github.com/xdite/auto-facebook
警告: 請絕對不要跳著裝!
- Software Update
- Install Xcode ( Mac OS X Install CD 那一塊的 >> 選擇安裝)
- Install Homebrew http://github.com/mxcl/homebrew
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)
# -*- encoding : utf-8 -*- | |
set :assets_dependencies, %w(app/assets lib/assets vendor/assets Gemfile.lock config/routes.rb) | |
namespace :deploy do | |
namespace :assets do | |
desc <<-DESC | |
Run the asset precompilation rake task. You can specify the full path \ | |
to the rake executable by setting the rake variable. You can also \ |
module Order | |
module Ranking | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
def update_r_ranking | |
t = self | |
t.r_ranking = Topic.calculate_ranking(t.pushes_count, t.created_at) | |
t.save(:validate => false) |
# -*- encoding : utf-8 -*- | |
require 'digest/md5' | |
module UrlShorter | |
ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split(//) | |
def self.short!(url) | |
hex = Digest::MD5.hexdigest(url) |
本文由 xdite 授權提供,為 Rails 101 第七章部分內容
佈署 Rails Application 是件說簡單很簡單,說複雜也很複雜的事。佈署的手法有很多種搭配,筆者最推薦的其實是在 Ubuntu / Debian 安裝 Ruby Enterprise Edition,web sever 使用 nginx + mod_rails 的組合。之後再撰寫 Capistrano 的 recipe 來 deploy。
https://note.com/hoshi19/n/n7161772aa3d5?fbclid=IwAR1av-BhpIYwa43QmExHNKH7P0eG2JewHDx63CsIbrojaiaquJ5XLOfg7F4 https://fanyi.qq.com/
這是快報!昨天公開的傳染病權威岩田健太郎洩露了鑽石公主號發生的事實。好像是通過SNS擴散到了日本、世界,所以寫下了那邊的視頻。
順便說一下,岩田醫生似乎也有可能已經感染了,自己被隔離了。雖然不知道地點,但是有決死的申訴,請一定要看。是非常震撼的戲劇內容。
=====
我是神戶大學醫院感染症內科教授,從現在開始說的內容和神戶大學等所屬的機構沒有任何關係,是我個人的見解。我會提前告訴你。
This post is based on my blog post: http://blog.xdite.net/posts/2012/07/09/3-way-to-speedup-asset-pipeline/
Here are my three tips for speedup asset pipeline precompile process:
- Capistrano deployment speedup
- Use @import carefully.
- don’t require .scss & .coffee for no reason