Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
commands [2025/12/27 01:39] agnescommands [2026/03/18 05:39] (current) agnes
Line 1: Line 1:
 +{{tag>tech commands otwarchive}}
 +
 +===== Commands =====
 +
 +.
 +
 ===== OTWarchive ===== ===== OTWarchive =====
  
Line 6: Line 12:
  
   sudo docker compose up -d web --force-recreate --remove-orphans   sudo docker compose up -d web --force-recreate --remove-orphans
 +  
 +chown elastic-data to docker before reloading ES so it works
 +
 +  sudo chown 1000:1000 /home/otwarchive/elastic-data
  
 reload elasticsearch: reload elasticsearch:
Line 37: Line 47:
  
     docker compose run web bundle exec rails c     docker compose run web bundle exec rails c
 +    
 +add invite reason form to database
 +
 +  alter table invite_requests add note text null;
 +
 +backup to restic
 +
 +  restic -r s3:s3.us-east-005.backblazeb2.com/BUCKETNAME backup /DIRECTORY --exclude log --exclude .git
 +  
  
 ===== Development with Rails 8 ===== ===== Development with Rails 8 =====
Line 54: Line 73:
  
   $ kamal deploy   $ kamal deploy
 +  
 +===== Fanart gallery =====
 +
 +  $ sudo docker run --rm -d -p 8696:8000 -v /home/pj/imageboard:/app/data -t shimmie2