Code Monkey home page Code Monkey logo

docker-rails6-api-mysql8's Introduction

README

環境構築方法

リポジトリ作成手順書はこちら

別リポジトリとして開発を進める場合

### 別プロジェクト名でこのリポジトリをcloneする
$ git clone [email protected]:nishina555/docker-rails6-api-mysql8.git [project_name] && cd [project_name]

### push先を変更
$ git remote set-url origin [email protected]:nishina555/[project_name].git

### push先の確認
$ git remote -v

### push
$ git push origin HEAD

clone後、ソースコードのプロジェクト名を変更する。大文字小文字を識別して、以下の文字列を置換する。

  • rails6_api_mysql8を'[project_name]'に置換
  • RAILS6_API_MYSQL8を'[PROJECT_NAME]'に置換
  • Rails6ApiMysql8を'[ProjectName]'に置換

Redisを利用する場合

  • docker-compose-with-redis.ymlを利用する
  • 以下のように設定ファイルを変更
# config/initializers/sessions_store.rb
Rails.application.config.session_store :redis_store,
                                       servers: %w(redis://redis:6379/0/session),
                                       expire_after: 90.minutes,
                                       key: "_#{Rails.application.class.parent_name.downcase}_session"

docker-rails6-api-mysql8's People

Contributors

nishina555 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.