Git Product home page Git Product logo

docker-compose-for-rails5's Introduction

What is it?

This project is a rails 5 docker environemtn. The following tools aready installed: bundler, last rails 5 release, sqlidev, nodejs (it is required for some gems)

Why use it?

First of all, it is helpful to run rails and installs dependencies avoiding conflicts with other rails projects. The second reason, it is to make your local machine clean, you don't need to install RVM or other stuff.

How to use?

There two folder:

  • mysql: when you want to create a rails app on mysql database
  • sqllite: when you want to create a rails app on sqlite database

After you clone the project, go to the folder of the database you want and read README.md file present in the folder

FAQ

=> I already have a rails project. How can I use this docker container? A: Pretty simple. Clone this docker container project and follow the steps:

  • for mysql: copy the files .env, Dockerfile, docker-compose, entrypoint, Makefile, my.cnf and paste inside your rails root path. After that, type the command: make run. Reminder yourself to edit your database.yml file using my example.database.yml as reference. If you have any questions, you can check README.MD inside the 'mysql' folder
  • for sqlite: copy the files Dockerfile, docker-compose, entrypoint, Makefile and pasta inside your rails root path. After that, type the command: 'make run'. If you have any questions, you can check README.MD inside the 'mysql' folder

=> I'm having problems to up the container or run rails project. What can I do ? A: create a github issue . I promise will answer as soon as possible

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.