Gem vs rails in ruby on rails?

0

Excuse me, I'm a bit of a rookie on ruby but when I run the ruby on rails server, the rails command does not work. I use the command '' gem '' for the server Note I'm in windows

my question is is not it a problem for a real project?

* Excuse my ignorance

    
asked by Sommer 12.11.2016 в 05:58
source

4 answers

2

Working with Rails in Windows environment will bring you several problems and as you go into the Framework it will be worse. Ideal that you can work under Linux or MacOS .

platform     
answered by 15.11.2016 в 22:25
1

There are several problems with the installation of ruby on rails on windows.

one of them are the environment variables.

I recommend you start with a "fresh" installation

using RailsInstaller downloading the complete installation package for windows

    
answered by 16.01.2017 в 00:54
1

Personally, I recommend using Docker for your Rails installation. It may intimidate the use of containers and virtual machines a bit at the beginning but there are numerous guides on the Internet ( tutorial on the official website >, another one ).

With its growing popularity, it is more and more common that other people and / or other environments have a Docker, therefore, I will tell you the main advantage of this: ALWAYS (99% of cases ) your application will work on any machine that uses Docker.

    
answered by 04.04.2018 в 09:35
0

The gem command is used to consult or install new gems, while the rails command can be used among other things to start the server (rails server) or access the console (rails console). This way you are in Windows should work. Anyway it is highly recommended that you work on Linux or Mac. In my case I have done in Linux both physical and virtual machines with VirtualBox, in both cases with Debian 9, although it could be any other.

I hope I have contributed something related to the question.

    
answered by 21.02.2018 в 21:57