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
about | |
aboutus | |
account | |
add | |
admin | |
angel_info | |
api | |
app | |
app_faqs | |
apps |
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
# Taken from http://www.rostamizadeh.net/blog/2012/04/14/precompiling-assets-locally-for-capistrano-deployment | |
# If we use asset_sync /CDN or maintenance page, try this instead | |
# http://p373.net/2013/05/14/rails-deployments-from-4-minutes-to-40-seconds/ | |
before 'deploy:finalize_update', 'deploy:assets:symlink' | |
after 'deploy:update_code', 'deploy:assets:precompile' | |
namespace :deploy do | |
namespace :assets do |
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
# == Schema Information | |
# | |
# Table name: notifications | |
# | |
# id :integer not null, primary key | |
# user_id :integer | |
# category :string(255) | |
# post_id :integer | |
# data :hstore | |
# created_at :datetime |
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
# Old Allotrop code for repost notifications | |
class RepostNotificationWorker | |
include Sidekiq::Worker | |
def perform(repost_id) | |
# debugger if Rails.env.development? | |
repost = Post.find(repost_id) | |
unless repost.nil? |
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
# These instructions are based on Ryan Bates' deploying to VPS Railscasts -- http://railscasts.com/episodes/335-deploying-to-a-vps | |
$ ssh [email protected] | |
root@li349-144:~# apt-get update | |
root@li349-144:~# apt-get -y install curl git-core python-software-properties | |
root@li349-144:~# add-apt-repository ppa:nginx/stable |