8000 GitHub - zevenzeng/milog: Milog是一基于 Ruby on Rails 的个人博客网站
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zevenzeng/milog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Milog

一基于 Ruby on Rails 的个人博客网站. http://hijinhu.me/hijinhu/

Guest Account > Email: aguest@hijinhu.me | Password: 123456

静态页面可访问 https://github.com/HiKumho/milog/tree/static_pages

特点

更新

2016年12月20日

  • 增加社区模块

  • 修改用户主页,增加用户关注功能

  • 增加消息通知系统

2017年1月30日

Thanks

部署

环境

Ubuntu 14.04 / Git / Ruby 2.3.1 / Rails 5.0.0 / MariaDB 5.5.52

下载

git clone git@github.com:Hikumho/milog.git

数据库

安装MariaDB

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu trusty main'

sudo apt-get update
sudo apt-get install mariadb-server

项目配置

在Milog项目下,新建config/local_env.yml, 并写入

MYSQL_USERNAME: yourname
MYSQL_PASSWORD: yourpassword

安装Gem

bundle install

这里可能会由于本地没有安装imagemagickelasticsearch出现错误

  • 安装imagemagick: sudo apt-get install imagemagick

  • 安装elasticsearch: 教程

迁移数据

rails db:create

rails db:migrate

rails db:seed

至此, 项目可在开发环境中运行

其它

邮件服务

新建config/email.yml文件, 写下

production:
  address: "smtp.163.com"
  port: 25
  authentication: "plain"
  user_name: "youremail"
  password: "yourpassword"
  enable_starttls_auto: true

这里使用的是163的个人邮箱

文件上传

使用的是七牛的服务, 具体配置请看carrierwave-qiniu

需在config/local_env.yml写下

QINIU_ACCESS_KEY: your_access_key
QINIU_SECRET_KEY: your_secret_key
QINIU_BUCKET: your_bucket
QINIU_BUCKET_DOMAIN: your_bucket_domain

About

Milog是一基于 Ruby on Rails 的个人博客网站

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 52.0%
  • HTML 29.2%
  • CSS 8.6%
  • CoffeeScript 6.4%
  • JavaScript 3.8%
0