Ruby & RailsRuby on RailsRuby

An Awesome Blog System for Rails

2017-01-08  本文已影响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

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.

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

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
上一篇下一篇

猜你喜欢

热点阅读