• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ailispaw/mastodon-barge: Mastodon on Barge with Vagrant

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ailispaw/mastodon-barge

开源软件地址(OpenSource Url):

https://github.com/ailispaw/mastodon-barge

开源编程语言(OpenSource Language):

Dockerfile 90.1%

开源软件介绍(OpenSource Introduction):

Mastodon on Barge with Vagrant

Mastodon is a free, open-source social network server.

A decentralized solution to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the social network seamlessly.

An alternative implementation of the GNU social project. Based on ActivityStreams, Webfinger, PubsubHubbub and Salmon.

This repo shows how to run a Mastodon instance on Barge with Vagrant instantly.

Note: You may find LOCAL_HTTPS=false in .env.provision here, therefor, it's just for a local test and don't use this setting in the public.

Requirements

Boot up

$ vagrant up

Or you can do the same procedure one by one as below.

Create a VM

$ vagrant up --no-provision

Build a Mastodon Docker image

$ vagrant provision --provision-with build

Configure .env.prodinction with secrets

$ vagrant provision --provision-with config

Set up the database and assets

$ vagrant provision --provision-with setup

Run a new Mastodon instance

$ vagrant provision --provision-with mastodon

Cf.) https://github.com/tootsuite/mastodon/tree/v1.2#running-with-docker-and-docker-compose

Sign up for the instance

http://localhost:3000/

Login to the instance

You will receive a confirmation email to activate your account and click a link in the email.

http://localhost:1080/

Or you can authorize yourself manually from your local console as below, just in case of missing the email or whatever.

$ vagrant ssh
[bargee@barge ~]$ cd /opt/mastodon
[bargee@barge mastodon]$ docker-compose run --rm web rails mastodon:confirm_email USER_EMAIL=<your email address>

Cf.) https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Administration-guide.md#confirming-users-manually

Make an administrator

[bargee@barge mastodon]$ docker-compose run --rm web rails mastodon:make_admin USERNAME=<your username>

Now you can access to the admin page.

http://localhost:3000/admin/settings

Cf.) https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Administration-guide.md#turning-into-an-admin

Upgrade Mastodon

Stop the instance

$ vagrant ssh
[bargee@barge ~]$ cd /opt/mastodon
[bargee@barge mastodon]$ docker-compose down

Backup

[bargee@barge mastodon]$ cd ..
[bargee@barge opt]$ sudo mv mastodon mastodon.bak

Upgrade this repo

$ git fetch
$ git checkout <new version>

Build a new Mastodon Docker image

$ vagrant provision --provision-with build

Restore configuration files and folders

[bargee@barge ~]$ cd /opt/mastodon
[bargee@barge mastodon]$ sudo cp -pR ../mastodon.bak/public .
[bargee@barge mastodon]$ sudo cp /vagrant/.env.production .

And then you have to copy the secrets from /opt/mastodon.bak/.env.production.

Upgrade the database and assets

Follow an upgrade instruction in the release notes. https://github.com/tootsuite/mastodon/releases

Restart the Mastodon instance

$ vagrant provision --provision-with mastodon

Cf.) https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Production-guide.md#things-to-look-out-for-when-upgrading-mastodon




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
scott48074/Mastodon-OSINT: Scripts related to Mastodon investigations发布时间:2022-08-18
下一篇:
en30/ruboty-mastodon发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap