Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige ÜberarbeitungNächste ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
infrastruktur:container:sediment [28.06.2021 19:49] – Malte | infrastruktur:container:sediment [07.10.2023 22:01] – [Sediment] Malte | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Sediment ====== | ====== Sediment ====== | ||
- | |Verantwortung | + | | Verantwortung |
- | |Container | + | | Container |
- | |W. Ports | + | | W. Ports | keine |
- | |OS | + | | OS | Debian |
- | |Server | + | | Server |
- | |Zustand | + | | Zustand |
- | {{tag> | + | {{tag> |
Hier findet sich die technische Dokumentation des Chaotikum Sediment. [[hackspace: | Hier findet sich die technische Dokumentation des Chaotikum Sediment. [[hackspace: | ||
===== Services ===== | ===== Services ===== | ||
- | ^ Serviceübersicht^Version^ | + | ^ Serviceübersicht |
- | |Sediment| 0.3.4 | | + | | Sediment |
====Sediment==== | ====Sediment==== | ||
Zeile 22: | Zeile 22: | ||
< | < | ||
- | apt install build-essential patch ruby-dev | + | apt install build-essential patch zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl |
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Install GPG keys: | ||
+ | < | ||
+ | gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | ||
+ | </ | ||
+ | |||
+ | Install RVM: | ||
+ | < | ||
+ | \curl -sSL https:// | ||
+ | </ | ||
+ | |||
+ | Install Ruby: | ||
+ | < | ||
+ | rvm install ruby-3.1.4 | ||
</ | </ | ||
Zeile 38: | Zeile 55: | ||
< | < | ||
- | git clone -4 https:// | + | git clone https:// |
</ | </ | ||
Zeile 44: | Zeile 61: | ||
< | < | ||
- | bundle | + | bundle |
- | </ | + | |
- | + | ||
- | Create secrets: | + | |
- | + | ||
- | < | + | |
- | EDITOR=vim rails credentials: | + | |
</ | </ | ||
Zeile 62: | Zeile 73: | ||
< | < | ||
- | yarn install --check-files | ||
rake assets: | rake assets: | ||
</ | </ | ||
- | === Running As IPv6 === | + | === Systemd Service |
- | Now you can run the server using | + | Create systemd service |
- | + | ||
- | < | + | |
- | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD=' | + | |
- | </ | + | |
- | + | ||
- | Create systemd service | + | |
< | < | ||
Zeile 84: | Zeile 88: | ||
Type=simple | Type=simple | ||
WorkingDirectory=/ | WorkingDirectory=/ | ||
- | Environment=RAILS_SERVE_STATIC_FILES=1 | + | Environment=... |
- | Environment=MAILER_PASSWORD=' | + | ExecStart=/usr/local/rvm/bin/rvm all do bundle exec rails s -e production -p 80 |
- | Environment=MAILER_HOST=' | + | |
- | Environment=MAILER_PORT=' | + | |
- | ExecStart=/ | + | |
- | Restart=always | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=multi-user.target | + | |
- | </ | + | |
- | + | ||
- | === Running As IPv4 Behind Reverse Proxy On Web === | + | |
- | + | ||
- | Now you can run the server using | + | |
- | + | ||
- | < | + | |
- | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD=' | + | |
- | </ | + | |
- | + | ||
- | Create systemd service `/ | + | |
- | + | ||
- | < | + | |
- | [Unit] | + | |
- | Description=sediment | + | |
- | After=syslog.target network.target | + | |
- | + | ||
- | [Service] | + | |
- | Type=simple | + | |
- | WorkingDirectory=/root/ | + | |
- | Environment=RAILS_SERVE_STATIC_FILES=1 | + | |
- | Environment=MAILER_PASSWORD=' | + | |
- | Environment=MAILER_HOST=' | + | |
- | Environment=MAILER_PORT=' | + | |
- | ExecStart=/root/sediment/bin/rails s -e production -p 80 | + | |
Restart=always | Restart=always | ||
Zeile 151: | Zeile 123: | ||
===== Wartung ===== | ===== Wartung ===== | ||
+ | In das Textfeld einfach das Datum der Wartung eintragen, am besten in der Form yyyy-mm-dd. | ||
+ | |||
+ | {{NEWPAGE> | ||
+ | }} | ||
+ | |||
{{topic>: | {{topic>: | ||
~~NOCACHE~~ | ~~NOCACHE~~ |