Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| commands [2025/12/27 01:39] – created agnes | commands [2026/03/18 05:39] (current) – agnes | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | |||
| + | ===== 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 / | ||
| 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: | ||
| + | | ||
| + | |||
| + | ===== Development with Rails 8 ===== | ||
| + | |||
| + | This is a page that outlines all the commands I need for basic maintenance of and updates to my applications built on Ruby on Rails so I have them all in one easily copy-pastable space. | ||
| + | |||
| + | CREATE USER | ||
| + | $ RAILS_ENV=production rails console | ||
| + | |||
| + | User.create!(email_address: | ||
| + | | ||
| + | DEPLOY | ||
| + | |||
| + | $ git add . | ||
| + | $ git commit -m " | ||
| + | $ git push -u origin main | ||
| + | |||
| + | $ kamal deploy | ||
| + | | ||
| + | ===== Fanart gallery ===== | ||
| + | $ sudo docker run --rm -d -p 8696:8000 -v / | ||
