Start a project in Rails 6

Rails 6 (beta 3) is out and many clients are asking to upgrade to the latest version. Remember, Rails 6 is still in it's beta version. If you start a project, I would recommend to use stable version of rails i.e. Rails 5.2.x.

But If you want to start with Rails 6 then Rails 6 require Ruby version 2.5+.

If you are using RVM check your ruby version is greater than or equals to 2.5.0 then you can install rails 6 by creating a folder (say folder name is clecotech), then go to that folder and create a Gemfile with writing source and gem rails using below command.

$ mkdir clecotech
$ cd clecotech
$ echo "source ''" >> Gemfile
$ echo "gem 'rails', git: ''" >> Gemfile
$ bundle install
You will see below lines after running bundle install command:
Fetching gem metadata from
Resolving dependencies...
Using rake 12.3
After running bundle command run below command to create project files and folders

$ bundle exec rails new . --dev --force

      create  Rakefile
      create  .ruby-version
      create  .gitignore
       force  Gemfile
         run  git init from "."
After creating folders structures and configuration file you just have to start the rails server from the command below:

$ bundle exec rails server -d
=> Booting Puma
=> Rails 6.0.0.alpha application starting in development
=> Run `rails server --help` for more startup options

That's it.

Your rails 6 project is started and running.

Let us know if you got any problem setting up rails 6 projects or anything.

Here in ClecoTech we are the team of expert rails developers who can work on any version of Ruby on Rails. and we will love to help if you find any problem running the application.

Happy Coding :).

More References:
Rails 6 release notes
Rails Upgrading Guide Mock Interview by MNC's Experts

Post a Comment

1 comment:

  1. The social media marketing organization experts’ style strategic as well as dynamic sociable strategies tailored to your business as well as your brand.
    design company website