Blog written in Ruby.
- language : Ruby2
- web framework: Rails4
- database : MongoDB
- js framework : Backbone.js
- markdown : Redcarpet
$ git clone https://github.com/k-yamada/techblog.git
$ cd techblog
$ ./bin/build_mac.sh
$ bundle install
$ rails s
View at: http://localhost:3000/
- deploy check
$ bundle exec cap production deploy:check
- set environments variables
$ ssh <deploy_server>
$ vim /var/www/techblog/shared/.env
export TECHBLOG_DEPLOY_USER=<server login user>
export TECHBLOG_DEPLOY_SERVER=<server ip or domain>
$ source ~/.bashrc
- deploy with capistrano
$ bundle exec cap production deploy
- nginx conf sample
$ RAILS_ENV=production LOKKA_DB=/path/to/lokka.sqlite3 rake import:from_lokka