Lot of crap. Use at your own risks.

Valérianne Dashie 874c27d60f
Use pm2 for nodejs
6 months ago
init_debian Use pm2 for nodejs 6 months ago
README.md Use pm2 for nodejs 6 months ago
crontab Update with latests scripts; Don't use rsync anymore 6 months ago
dot_bash_profile Add dot things 6 months ago
dot_profile Add dot things 6 months ago
ecosystem.config.js Use pm2 for nodejs 6 months ago
nginx.conf Bleh 6 months ago
sync_medias.sh Update with latests scripts; Don't use rsync anymore 6 months ago

README.md

Shit I use for Mastodon

Plot: I'm lazy, and don't have SystemD on my CTs.

Also all my CTs are internal NAT + proxy from a single public CT.

My "root" (public dir in rails) is a bind mount in two CTs managed by LXC.

Scripts and things

  • sync_medias.sh : do a rails assets:precompile
  • nginx.conf : my nginx vhost config
  • init_debian/mastodon a master init script with start/stop/upgrade script (just call other mastodon-* for start/stop calls)
  • init_debian/mastodon-sidekiq manage sidekiq
  • init_debian/mastodon-streaming nodejs instance
  • init_debian/mastodon-web puma rails thing
  • crontab "crontab -e" file for mastodon user
  • dot_bash_profile and dot_profile : .bash_profile and .profile, identical, for rbenv thing
  • ecosystem.config.js nodejs pm2 config

Non file but actions

  • ln -s /home/mastodon/live/.ruby-version /home/mastodon
    • to have ruby auto selected for rbenv for commande with shims