Straight to Maintenance
Initialize the droplet with dokku app pre-setup
# hook approach | |
class InstructionsController < ApplicationController | |
before_action :load_instruction, only: %i[show edit] | |
def show | |
authorize @instruction | |
end | |
def edit | |
authorize @instruction |
Initialize the droplet with dokku app pre-setup
v1, updated 2023-01-07
In this little guide I'll describe how to set up graphs for Hardspace: Shipbreaker game. Should take no more than 10mins.
RESPONSE_CODES = { | |
"000" => "Approved", | |
"001" => "Approved, honour with identification", | |
"002" => "Approved for partial amount", | |
"003" => "Approved for VIP", | |
"004" => "Approved, update track 3", | |
"005" => "Approved, account type specified by card issuer", | |
"006" => "Approved for partial amount, account type specified by card issuer", | |
"007" => "Approved, update ICC", | |
"100" => "Decline (general, no comments)", |
{"lastUpload":"2021-06-15T07:37:30.093Z","extensionVersion":"v3.4.3"} |
Bullet::Notification::UnoptimizedQueryError at /api/v2/tiered_pricing_models/11834910-c11f-49bb-b095-23c98acbe51f | |
================================================================================================================= | |
> user: augusts | |
PUT /api/v2/tiered_pricing_models/11834910-c11f-49bb-b095-23c98acbe51f | |
AVOID eager loading detected | |
TieredPricingModel => [:account_tiered_pricing_model_template] | |
Remove from your finder: :includes => [:account_tiered_pricing_model_template] | |
Call stack | |
/Users/augusts/Projects/herer-api/spec/requests/tiered_pricing_models_spec.rb:63:in `block (3 levels) in <top (required)>' |
1. Use no spaces around curly braces around Hash
parentheses
# good
describe "#current_agreement_vehicle assoc", :slow, travel_to: "2021-01-01" do | |
let!(:vehicle1) do | |
Timecop.freeze(1.day.ago) { create(:vehicle) } | |
end | |
let!(:vehicle2) do | |
Timecop.freeze(2.days.ago) { create(:vehicle) } | |
end | |
let(:av1_2) do |
# /config/puma.rb | |
app = "manabalss" # App-specific | |
root = "/home/deployer/apps/#{app}" | |
workers 5 | |
threads 1, 1 # relying on many workers for thread-unsafe apps | |
rackup DefaultRackup | |
port 11592 |