admin notes for my site superlove.
server tasks
run all commands sequentially
start server
export RAILS_ENV=production
cd /home/katmac3/superlove/otwarchive
bin/reload_elastic
bin/start_my_workers
bin/start_my_unicorns
bundle exec ruby bin/wait_for_resque.rb
nohup bundle exec rake resque:scheduler &kill server
export RAILS_ENV=production
cd /home/katmac3/superlove/otwarchive
bin/kill_my_workers
bin/kill_my_unicorns500 error on new pseud
icon error - launch rails console and update the pseud to use the default icon
cd /home/katmac3/superlove/otwarchive && export RAILS_ENV=production && rails crun the following commands sequentially in the rails console:
u = User.find_by(id: 1) # change ID, find on user profile
p = Pseud.find_by(id: 1) # change number
p.icon.attach(io: File.open("#{Rails.root}/public/images/skins/iconsets/default/icon_user.png"), filename: "icon_user.png", content_type: "image/png")
p.save!
p.save