mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-01 19:32:38 +00:00
Docs: install from source with asdf
This commit is contained in:
parent
8871ca5aa3
commit
facb750798
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -52,9 +52,6 @@ docs/generated_config.md
|
|||
.idea
|
||||
pleroma.iml
|
||||
|
||||
# asdf
|
||||
.tool-versions
|
||||
|
||||
# Editor temp files
|
||||
/*~
|
||||
/*#
|
||||
|
|
2
.tool-versions
Normal file
2
.tool-versions
Normal file
|
@ -0,0 +1,2 @@
|
|||
elixir 1.11
|
||||
erlang 23.3.4
|
|
@ -38,22 +38,6 @@ sudo apt full-upgrade
|
|||
sudo apt install git build-essential postgresql postgresql-contrib cmake libmagic-dev
|
||||
```
|
||||
|
||||
### Install Elixir and Erlang
|
||||
|
||||
* Download and add the Erlang repository:
|
||||
|
||||
```shell
|
||||
wget -P /tmp/ https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
|
||||
sudo dpkg -i /tmp/erlang-solutions_2.0_all.deb
|
||||
```
|
||||
|
||||
* Install Elixir and Erlang:
|
||||
|
||||
```shell
|
||||
sudo apt update
|
||||
sudo apt install elixir erlang-dev erlang-nox
|
||||
```
|
||||
|
||||
### Optional packages: [`docs/installation/optional/media_graphics_packages.md`](../installation/optional/media_graphics_packages.md)
|
||||
|
||||
```shell
|
||||
|
@ -84,6 +68,39 @@ sudo -Hu pleroma git clone -b stable https://git.pleroma.social/pleroma/pleroma
|
|||
cd /opt/pleroma
|
||||
```
|
||||
|
||||
#### Install Elixir and Erlang
|
||||
|
||||
* Become the Pleroma user:
|
||||
|
||||
```shell
|
||||
sudo -Hu pleroma bash
|
||||
```
|
||||
|
||||
* Install [asdf](https://asdf-vm.com/):
|
||||
|
||||
```shell
|
||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
|
||||
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc
|
||||
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
|
||||
exec bash
|
||||
asdf plugin-add erlang
|
||||
asdf plugin-add elixir
|
||||
```
|
||||
|
||||
* Install Elixir and Erlang:
|
||||
|
||||
```shell
|
||||
asdf install
|
||||
```
|
||||
|
||||
* Return to the root user:
|
||||
|
||||
```shell
|
||||
exit
|
||||
```
|
||||
|
||||
#### Install Pleroma dependencies
|
||||
|
||||
* Install the dependencies for Pleroma and answer with `yes` if it asks you to install `Hex`:
|
||||
|
||||
```shell
|
||||
|
|
|
@ -18,7 +18,8 @@ Environment="HOME=/var/lib/pleroma"
|
|||
; Path to the folder containing the Pleroma installation.
|
||||
WorkingDirectory=/opt/pleroma
|
||||
; Path to the Mix binary.
|
||||
ExecStart=/usr/bin/mix phx.server
|
||||
Environment="PATH=/var/lib/pleroma/.asdf/shims:/var/lib/pleroma/.asdf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
ExecStart=/var/lib/pleroma/.asdf/shims/mix phx.server
|
||||
|
||||
; Some security directives.
|
||||
; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
|
||||
|
|
Loading…
Reference in a new issue