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的條款發布。