Giter VIP home page Giter VIP logo

dev_rails's Introduction

dev_rails

Ruby_On_Rails_Logo svg

  • docker images

    • rails-app
      • ruby:2.7.2 (nginx,puma,supervisor)
    • rails-db
      • mysql:8.0.27
    • rails-redis
  • git clone or fork

mkdir -p ~/git/github
cd ~/git/github
git clone [email protected]:RVIRUS0817/dev_rails.git
  • add localhost /etc/hosts
sudo vim /etc/hosts
127.0.0.1 dev.adachin.com
  • docker run
cd dev_rails
cp .env.example .env
cd docker/dev
docker-compose up -d
  • app deploy
docker exec -it rails-app bash

yarn install
bundle install
rails db:migrate
/usr/bin/supervisorctl restart app
  • Access

スクリーンショット 2020-12-19 22 22 14

http://dev.adachin.com/

  • DB login
docker exec -it rails-app bash
mysql -u root -h db -p
  • redis login
docker exec -it rails-app bash
redis-cli -h redis

When want to use binding.pry

docker exec -it rails-app bash
supervisorctl stop app
bundle exec rails s

How to download Rails app

bundle exec rails new app

RUN docker/dev-micro

https://github.com/RVIRUS0817/dev_rails/tree/master/docker/dev-micro

dev_rails's People

Contributors

rvirus0817 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.