美文网首页Ruby & RailsRuby on RailsRuby
An Awesome Blog System for Rails

An Awesome Blog System for Rails

作者: 老码农不上班 | 来源:发表于2017-01-08 15:23 被阅读44次

The post introduce my personal website Pblog https://huangwenwei.com

PBlog

A awesome personal website based on Ruby on Rails and Semantic-UI

Features

  • SEO friendly
  • Manage you posts and resume
  • Simple and elegant responsive UI
  • The source code clearly for Ruby on Rails to study
  • Manage comments, contract messages on you own without any limit

Getting Started

Now, with a few command and modify some description, you can own a geek personal webpage, here we go.

Prerequisites

PBlog is a Ruby on Rails webApp. We assume a live *nix service with Rails environment.

  • Ruby (>2.3.1)

  • Mysql (> 14)

  • Nginx

  • pow a tool for MacOS user developer Rack App

    not necessary (Zero-configuration Rack server for MacOS)

installing

A step by step introduce to run in local machine and deploy to server. Deadly simple!

// modify config/database.yml configuration
git clone https://github.com/wenweih/PBlog.git
cd PBlog
bundle install
rails db:setup

Development

  • Pow: ln -s the_path_of_PBlog ~/.pow/blognow you can visit blog.dev
  • or rails snow you can visit localhost:3000

Production

// modify config/database.yml configuration
git clone https://github.com/wenweih/PBlog.git
cd PBlog
bundle install
RAILS_ENV=production rails db:setup
RAILS_ENV=production rails assets:precompile
RAILS_ENV=production rake secret
// after generate a random string, replace config/secrets.yml with is
RAILS_ENV=production puma -C config/puma.rb

Screenshot

PC

home indexhome index home indexhome index

Mobile

home indexhome index home indexhome index

相关文章

网友评论

    本文标题:An Awesome Blog System for Rails

    本文链接:https://www.haomeiwen.com/subject/fkwqbttx.html