Skip to content
ichy edited this page Apr 27, 2019 · 32 revisions

環境構築手順

  1. CentOS 7 を用意
    • sudo 権限を付与
      (ユーザで)$ su
      (ルートで)# echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER
      
    • Ruby環境をインストール
      $ sudo yum install git
      $ git clone [https://github.com/ichylinux/daddy.git または [email protected]:ichylinux/daddy.git]
      $ pushd daddy
      $ bin/dad local
      $ popd
      
  2. Hyaccのインストール
    • ソースを取得
      $ git clone [https://github.com/hybitz/hyacc.git または [email protected]:hybitz/hyacc.git]
      $ cd hyacc
      
    • 各種ミドルウェアのインストール
      $ bundle install
      $ rake dad:setup
      
    • DBの初期化
      $ rake dad:db:create
      $ rails db:reset
      
    • テスト
      $ rails test
      $ rake dad:setup:test
      $ rake dad:test
      
    • 起動
      $ sudo systemctl restart nginx
      

      ブラウザから http://localhost にアクセスして動作を確認します。
Clone this wiki locally