Skip to content

masuda-y/nomnichi

 
 

Repository files navigation

What is nomnichi?

nomnichi is a Nomura Laboratory’s blog system developed by Ruby on Rails.

Environment

Ruby2.2.3
Rails4.2.4

Installation for developers

I recommend you to install new Ruby and Bundler on the top of Rbenv before install nomnichi.

  1. Install rbenv + ruby-build (check https://github.com/sstephenson/rbenv#basic-github-checkout for details)
    $ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
    $ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    # Edit your shell dot files to add some path and environment variables.
        
  2. Install Ruby and Bundler
    # Install ruby 2.2.3
    $ rbenv install 2.2.3
    
    # Installation check
    $ rbenv global 2.2.3
    $ ruby -v # -> You will see: ruby 2.1.5...
    
    # Install bundler for your new Ruby
    $ gem install bundler
    
    # Activate bundler
    $ rbenv rehash
    
    # Get back to your system default Ruby if you want
    $ rbenv global system # say, /usr/bin/ruby
    $ ruby -v
        
  3. clone nomnichi from github
    $ git clone [email protected]:nomlab/nomnichi.git ~/Programs/nomnichi
        
  4. Setup to use installed ruby
    $ cd ~/Programs/nomnichi
    $ rbenv local 2.2.3
    $ ruby -v # -> You will see: ruby 2.2.3...
        
  5. Install vendor/bundle stuffs
    $ bundle install --path vendor/bundle
        
  6. Setup secret key
    $ bundle exec rake secret # -> You will see: foobarbuz... Copy the string.
    $ cp config/secrets-example.yml config/secrets.yml
    $ vim config/secrets.yml # -> Replace all <SECRETKEY> with the string outputted
        
  7. Setup GitHub OmniAuth
    $ cp config/application_settings_sample.yml config/application_settings.yml
    $ vim config/application_settings.yml # -> set client_id, client_secret, allowed_team_id
        
  8. Setup DB
    $ bundle exec rake db:migrate
    $ bundle exec rake db:migrate RAILS_ENV=production
        

Launch nomnichi Rails app

development

$ bundle exec rails s

production

$ bundle exec rake assets:precompile RAILS_ENV=production
$ bundle exec rails s -e production

About

Nomura Laboratory's Blog System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 79.5%
  • Ruby 8.9%
  • TeX 8.1%
  • CSS 1.5%
  • Perl 0.8%
  • Makefile 0.5%
  • Other 0.7%