mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-22 04:11:09 +00:00
Remove iframely. (#98)
This commit is contained in:
parent
532b1c04ca
commit
5028afed50
3 changed files with 1 additions and 70 deletions
|
@ -101,35 +101,6 @@ sudo -u postgres psql -c "create user lemmy with password 'password' superuser;"
|
||||||
sudo -u postgres psql -c 'create database lemmy with owner lemmy;' -U postgres
|
sudo -u postgres psql -c 'create database lemmy with owner lemmy;' -U postgres
|
||||||
```
|
```
|
||||||
|
|
||||||
### iFramely install
|
|
||||||
|
|
||||||
git and nodejs required, but nodejs should be installed as a dependency of yarn.
|
|
||||||
|
|
||||||
#### Mentioned in case iFramely installed on separate system
|
|
||||||
|
|
||||||
```bash
|
|
||||||
useradd -m -s /bin/bash iframely
|
|
||||||
|
|
||||||
cd ~iframely
|
|
||||||
sudo -Hu iframely git clone https://github.com/itteco/iframely.git
|
|
||||||
cd iframely
|
|
||||||
sudo -Hu iframely git tag -l
|
|
||||||
sudo -Hu iframely git checkout tags/v1.5.0
|
|
||||||
sudo -Hu iframely npm install
|
|
||||||
```
|
|
||||||
|
|
||||||
Replace port 80 in this config? - why not leave at 8061; also, potentially replace or disable cache storage for now? (CACHE_ENGINE: 'no-cache')
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo -Hu iframely cp ~lemmy/lemmy/docker/iframely.config.local.js ~lemmy/iframely/config.local.js
|
|
||||||
```
|
|
||||||
|
|
||||||
Start the iframely server OR, use an [init script](#initiframely) instead, which is better than running this manually
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo -Hu iframely node server
|
|
||||||
```
|
|
||||||
|
|
||||||
### pict-rs install
|
### pict-rs install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -232,19 +203,6 @@ yarn build:prod
|
||||||
|
|
||||||
restart lemmy-ui
|
restart lemmy-ui
|
||||||
|
|
||||||
### iFramely update
|
|
||||||
|
|
||||||
```bash
|
|
||||||
su - iframely
|
|
||||||
cd iframely
|
|
||||||
git fetch
|
|
||||||
git tag -l
|
|
||||||
git checkout tags/v1.6.0 # Or whatever the current appropriate release is
|
|
||||||
npm install
|
|
||||||
```
|
|
||||||
|
|
||||||
restart iframely
|
|
||||||
|
|
||||||
### pict-rs update
|
### pict-rs update
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -283,7 +241,6 @@ config/config.hjson example
|
||||||
port: 8536
|
port: 8536
|
||||||
docs_dir: "/home/lemmy/lemmy/docs/book"
|
docs_dir: "/home/lemmy/lemmy/docs/book"
|
||||||
pictrs_url: "http://localhost:9000"
|
pictrs_url: "http://localhost:9000"
|
||||||
iframely_url: "http://localhost:8061"
|
|
||||||
federation: {
|
federation: {
|
||||||
enabled: true
|
enabled: true
|
||||||
allowed_instances: ""
|
allowed_instances: ""
|
||||||
|
@ -299,30 +256,6 @@ config/config.hjson example
|
||||||
|
|
||||||
### init scripts
|
### init scripts
|
||||||
|
|
||||||
##### init/iframely
|
|
||||||
|
|
||||||
```bash
|
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
name="Iframely Daemon"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need localmount
|
|
||||||
need net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting Iframely"
|
|
||||||
start-stop-daemon --start --background --make-pidfile --user iframely --group iframely --pidfile /home/iframely/iframely.pid --chdir /home/iframely/iframely -3 /usr/bin/logger -4 /usr/bin/logger --exec node -- server
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
start-stop-daemon --stop --signal TERM --pidfile /home/iframely/iframely.pid
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
##### init/lemmy
|
##### init/lemmy
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -10,7 +10,6 @@ cd /lemmy
|
||||||
# download default config files
|
# download default config files
|
||||||
wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml
|
wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml
|
||||||
wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/lemmy.hjson
|
wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/lemmy.hjson
|
||||||
wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/iframely.config.local.js
|
|
||||||
|
|
||||||
# Set correct permissions for pictrs folder
|
# Set correct permissions for pictrs folder
|
||||||
mkdir -p volumes/pictrs
|
mkdir -p volumes/pictrs
|
||||||
|
|
|
@ -99,6 +99,5 @@ yarn dev
|
||||||
|
|
||||||
and go to [localhost:1234](http://localhost:1234). Front end saves should rebuild the project.
|
and go to [localhost:1234](http://localhost:1234). Front end saves should rebuild the project.
|
||||||
|
|
||||||
Note that this setup doesn't include image uploads or link previews (provided by pict-rs and
|
Note that this setup doesn't include image uploads. If you want to test those, you should use the
|
||||||
iframely respectively). If you want to test those, you should use the
|
|
||||||
[Docker development](docker_development.md).
|
[Docker development](docker_development.md).
|
||||||
|
|
Loading…
Reference in a new issue