Code Monkey home page Code Monkey logo

shirasagi's Introduction

SHIRASAGI

SHIRASAGI is Contents Management System.

Code Status

Ruby Coverage Status Code Climate GitHub version

Documentation

Platform

  • CentOS, Ubuntu
  • Ruby 2.6
  • Ruby on Rails 5.2
  • MongoDB 3
  • Unicorn

Installation (Auto)

  • CentOS7の環境で実行してください。
  • 一般ユーザーで実行する場合は、sudoが利用できることを確認してください。
  • パラメーターの"example.jp"には、ブラウザでアクセスする際のドメイン名または、IPアドレスを指定してください。
$ su - user-which-executes-shirasagi-server
$ curl https://raw.githubusercontent.com/shirasagi/shirasagi/master/bin/install.sh | bash -s example.jp

Installation (CentOS 7)

拡張機能(ふりがな、読み上げ、オープンデータ等)や詳細なインストール手順は開発マニュアルをご確認ください。

パッケージのダウンロード

$ su -
# yum -y install wget git ImageMagick ImageMagick-devel

MongoDB のインストール

# vi /etc/yum.repos.d/mongodb-org-3.4.repo
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=0
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
# yum install -y --enablerepo=mongodb-org-3.4 mongodb-org
# systemctl start mongod
# systemctl enable mongod

Ruby(RVM) のインストール

# \curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
# \curl -sSL https://rvm.io/mpapis.asc | gpg --import -
# \curl -sSL https://get.rvm.io | sudo bash -s stable
# source /etc/profile
# rvm install 2.6.3 --disable-binary
# rvm use 2.6.3 --default
# gem install bundler

SHIRASAGI のインストール

SHIRASAGI のダウンロード (stable)

$ git clone -b stable --depth 1 https://github.com/shirasagi/shirasagi /var/www/shirasagi

設定ファイルの設置と gem のインストール

$ cd /var/www/shirasagi
$ cp -n config/samples/*.{yml,rb} config/
$ bundle install --without development test

Web サーバの起動

$ rake unicorn:start

サイトの作成

データベース(インデックス)の作成

$ rake db:drop
$ rake db:create_indexes

新規サイトの追加

$ rake ss:create_site data='{ name: "サイト名", host: "www", domains: "localhost:3000" }'

サンプルデータ (自治体サンプル) の投入

$ rake db:seed name=demo site=www

サイトの確認

管理画面

http://localhost:3000/.mypage にアクセスするとログイン画面が表示されます。
サイト名のリンクをクリックすると、登録したデモデータを確認・編集することができます。
[ ユーザーID: admin , パスワード: pass ]

公開画面

http://localhost:3000/ にアクセスすると登録したデモサイトが表示されます。

開発・テスト環境

.envというファイルをプロジェクトルートに用意すれば各種設定をお好みのものに切り替えられます。

(設定例)

  • デフォルトでwarnになっているログレベルをdebugにしたい場合。
  • テスト時にデフォルトで実行されるカバレッジ計測を省きたい場合。
DEVELOPMENT_LOG_LEVEL=debug
ANALYZE_COVERAGE=disabled

その他機能の利用方法

shirasagi's People

Contributors

sunny4381 avatar itowtips avatar tany avatar ftakao2007 avatar shinjitanimoto avatar kaosf avatar kondo-yuya avatar syncsyncsynchalt avatar gouf avatar kkinouchi avatar mizoki avatar ash0411-maker avatar kitarinn-1012 avatar hiraiy avatar snkmr avatar okusakazuya avatar dependabot[bot] avatar kanahebi avatar masakiooba avatar tetsu-26 avatar tamatips avatar sjc-tachihara avatar naokimitomi avatar hotmix avatar hidakatsuya avatar wt-nakajima avatar ttanaka9211 avatar three-bridges avatar raux avatar gitter-badger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.