moeil
0.6.7
未受欢迎,不要使用
Møil是用于数据库支持的邮件服务器(Postfix/dovecot)的开源管理用户界面。它带来了用迁移和许多美丽的Crud管理数据库的方便可能性。
该代码可从GitHub获得。
就像其他任何当前的铁路项目一样部署。 Postfix和Dovecot的配置示例可以在代码存储库的DOC目录中找到。
假定,安装和运行Elasticsearch。如果要使用基于SQL的搜索,请设置elasticsearch: false config/settings.yml中的false。
git clone git://github.com/nning/moeil.git
cd moeil
ln -s database.yml.example config/database.yml
gem install bundler
bundle
rake secret:replace
rake db:migrate
rake db:seed
rails s
(请注意,《 OpenShift指南》目前不包含Elasticsearch的说明。)
第一步发生在您的本地终端。因此,这是用于使用PostgreSQL 9.2墨盒创建OpenShift Ruby 1.9应用程序:
rhc app create -a moeil -t ruby-1.9
rhc cartridge add -a moeil -c postgresql-9.2
创建了持有您的应用程序代码的GIT存储库。我们将Møil存储库添加为遥控器,然后将代码拉到应用程序存储库中:
cd moeil
git remote add upstream -m master https://github.com/nning/moeil.git
git pull -s recursive -X theirs upstream master
然后,我们推动当前状态并部署应用程序(这需要一些时间):
git push origin master
要创建第一个域和一个邮箱,我们必须进入OpenShift应用程序并启动Rails Console:
rhc ssh moeil
cd app-root/repo
RAILS_DB=postgresql RAILS_ENV=production bundle exec rails c
然后,在导轨控制台内,我们正在创建一个域和关联的邮箱:
d = Domain.create!(name: 'example.org')
m = Mailbox.new(username: 'alice', password: 'foobar', admin: true)
m.domain = d
m.save!
现在,您可以在OpenShift上登录到Møil部署。
版权所有©2013-2015 Henning Mueller,根据GNU AGPL 3.0的条款发布。