简体   繁体   English

散居者:如何申请管理员角色?

[英]diaspora: how to apply admin role?

I have a pod running based on https://hub.docker.com/r/koehn/diaspora/ 我有一个基于https://hub.docker.com/r/koehn/diaspora/运行的pod

I found a FAQ entry about the Admin Role https://wiki.diasporafoundation.org/FAQ_for_pod_maintainers#What_are_roles_and_how_do_I_use_them.3F_.2F_Make_yourself_an_admin_or_assign_moderators 我找到了有关管理员角色的FAQ条目https://wiki.diasporafoundation.org/FAQ_for_pod_maintainers#What_are_roles_and_how_do_I_use_them.3F_.2F_Make_yourself_an_admin_or_assign_moderators

Unfortunately, the "rails console" does not work in that container (1). 不幸的是,“ rails控制台”在该容器(1)中不起作用。

Could I add the admin role directly in the database? 我可以直接在数据库中添加管理员角色吗? I found my intitial user in the "users" table and see a "roles" table that is currently empty. 我在“用户”表中找到了我的初始用户,并看到了当前为空的“角色”表。 Just unsure what I would have to INSERT there 只是不确定要在那儿插入什么

(1) on first try I got a bundle not found . (1)在第一次尝试时,我没有找到束 I figured that I had to install that missing gem. 我认为必须安装丢失的gem。 But even with that done I don't get the mentioned command to run: 但是即使这样做,我也无法运行上述命令:

diaspora@e4447573f534:~$ RAILS_ENV=production bundle exec rails console
Could not locate Gemfile or .bundle/ directory

It looks like diaspora* is installed to /home/diaspora/diaspora within the image. 好像 diaspora *已安装到映像中的/home/diaspora/diaspora You need to run the command in the FAQ from within that folder, so cd to it first. 您需要从该文件夹中的FAQ中运行命令,因此请先对其进行cd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM