This file contains hidden or 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
/* FLEETING NOTES */ | |
span.page-reference[data-ref="fleeting note"] | |
{ background: var(--ls-primary-background-color); | |
background-size: 100%; | |
color: var(--ls-primary-text-color); | |
padding: 2px 5px 2px 5px; | |
font-size: 13px; | |
line-height: 1em; | |
font-weight: 500; |
This file contains hidden or 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
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
This file contains hidden or 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
namespace :deploy do | |
namespace :sidekiq do | |
desc 'Replace upstart config for sidekiq-workers' | |
task :upstart_config do | |
data = %Q{ | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
exec su - #{user} -c 'cd #{release_path}; export RAILS_ENV=#{stage}; bundle exec sidekiq -q default,1 -c 4 -pid #{release_path}/tmp/pids/sidekiq.pid >> #{release_path}/log/sidekiq.log 2>&1' |