Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
doc
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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
  • Redis
  • 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:create
rails db:migrate

Development

  • Pow: ln -s the_path_of_PBlog ~/.pow/blog now you can visit blog.dev
  • or rails s now you can visit rails server -p 3000 -b 127.0.0.1

Production

Capistrano is a best tool to deploy Rails project. before deploy, you should modify config/app.example.yml and, config/database.example.yml to fix your own. and then modify server ip in config/deploy/production.rb file. run flow command int your repo root directory:

bundle exec cap production deploy:config  // upload config to server
bundle exec cap production puma:config    // upload puma config to server
bundle exec cap production deploy         // clone and compile static assets and db migrate
bundle exec cap production deploy:restart // start blog service

Screenshot

PC home index

home index

home index

Mobile

home index

home index

About

A awesome personal website based on Ruby on Rails And Semantic-UI https://huangwenwei.com

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.