From cab815878c0a4f3a99ace5f11e5841dbd318b771 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Wed, 3 May 2017 11:02:55 +0900 Subject: [PATCH 1/2] Use "sudo -u" instead of "sudo su" "sudo su" limits the capability of sudo to log the operations. -u option is more straightforward and has better logging. --- Running-Mastodon/Production-guide.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index 21d4abd..3cbf6a2 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -109,7 +109,7 @@ server { ## Running in production without Docker -It is recommended to create a special user for mastodon on the server (you could call the user `mastodon`), though remember to disable outside login for it. You should only be able to get into that user through `sudo su - mastodon`. +It is recommended to create a special user for mastodon on the server (you could call the user `mastodon`), though remember to disable outside login for it. You should only be able to get into that user through `sudo -u mastodon`. ## General dependencies @@ -130,8 +130,7 @@ It is recommended to create a special user for mastodon on the server (you could Set up a user and database for Mastodon: - sudo su - postgres - psql + sudo -u postgres psql In the prompt: @@ -163,7 +162,11 @@ Then once `rbenv` is ready, run `rbenv install 2.4.1` to install the Ruby versio ## Git -You need the `git-core` package installed on your system. If it is so, from the `mastodon` user: +You need the `git-core` package installed on your system. If it is so, run the shell from the `mastodon` user: + + sudo -su mastodon + +And enter the following commands: cd ~ git clone https://github.com/tootsuite/mastodon.git live From d1d4532296f7f123a8a91ea242be1121f861a66c Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Sun, 7 May 2017 03:44:18 -0700 Subject: [PATCH 2/2] Add PHP API Libraries (#197) This should resolve issue #79. I've included all 4 PHP libraries mentioned in that issue, per the conversation in PR #150. --- Using-the-API/API.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Using-the-API/API.md b/Using-the-API/API.md index f2e3e94..282ce05 100644 --- a/Using-the-API/API.md +++ b/Using-the-API/API.md @@ -56,6 +56,10 @@ ___ | JavaScript (Node.js) | [node-mastodon](https://github.com/jessicahayley/node-mastodon) | | | JavaScript | [libodonjs](https://github.com/Zatnosk/libodonjs) | | | Perl | [Mastodon::Client](https://metacpan.org/pod/Mastodon::Client) | | +| PHP | [MastodonOAuthPHP](https://github.com/TheCodingCompany/MastodonOAuthPHP) | | +| PHP | [Phediverse Mastodon REST Client](https://github.com/phediverse/mastodon-rest) | | +| PHP | [Mastodon-api-php](https://github.com/yks118/Mastodon-api-php) | | +| PHP | [TootoPHP](https://framagit.org/MaxKoder/TootoPHP) | | | Python | [Mastodon.py](https://github.com/halcy/Mastodon.py) | | | R | [mastodon](https://github.com/ThomasChln/mastodon) | | | Ruby | [mastodon-api](https://github.com/tootsuite/mastodon-api) | [@Gargron@mastodon.social](https://mastodon.social/@Gargron) |