Skip to content
Mozilla Japanより引き継いで改修作業中です。
Ruby HTML CSS JavaScript TypeScript
Branch: master
Clone or download
Pull request Compare This branch is 8 commits behind webdino:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
app
bin
config
db
gemfiles
lib
public
script
spec
vendor/assets
.babelrc
.coveralls.yml
.editorconfig
.envrc.sample
.eslintrc.js
.gitignore
.prettierignore
.rspec
.rubocop.yml
.rubocop_todo.yml
.ruby-version
.scss-lint.yml
.slim-lint.yml
.travis.yml
Capfile
Gemfile
Gemfile.local.sample
Gemfile.lock
LICENSE.md
README.md
Rakefile
config.ru
docker-compose.development.yml
package-lock.json
package.json
tsconfig.json
tslint.json
webpack.config.js

README.md

gitfab2 Build Status Code Climate Coverage Status

Setup a build environment

Requirements

  • Docker 17 ce or later
  • Docker Compose 1.16 or later
  • direnv
  • rbenv
  • node.js

Installation

$ git clone git@github.com:webdino/gitfab2.git
$ cd gitfab2
$ rbenv install `cat .ruby-version`
$ gem install bundler --no-document
$ bundle install
$ npm install
$ npm run build
$ cp config/database.ymls/development.yml config/database.yml
$ cp .envrc.sample .envrc
$ vi .envrc
$ direnv allow

Start Docker Compose

$ docker-compose up -d
$ docker-compose ps
              Name                             Command               State            Ports
----------------------------------------------------------------------------------------------------
gitfab2_db_1                 docker-entrypoint.sh --inn ...   Up      0.0.0.0:13306->3306/tcp

Create database

Dockerコンテナを起動してから

$ bundle exec rake db:create
$ bundle exec rake db:migrate

Run Server

$ bundle exec rails s

Open https://localhost:3000 in your browser.

Frontend

app/frontend/ 以下の開発を行う場合は、 npm start でwebpackを起動する。

app/frontend/ 以下に変更を加えない場合は、一度 npm run build をすればOK。

Assets

assets/stylesheets/ 以下に変更を加えた場合は、

$ bundle exec rake assets:clear
$ bundle exec rake assets:precompile

で反映される。

Run tests

$ bundle exec rspec

License

gitfab2 is released under the Apache License, Version 2.0.

Copyright 2017 WebDINO Japan.

You can’t perform that action at this time.