my windows 10 Rails (RoR) environment has been difficult to get working.
This document details the quirks to get it working
ruby --version ruby 2.2.5p319 (2016-04-26 revision 54774) [i386-mingw32] rails --version Rails 5.1.3
PATH= where ruby
When installing a new RoR app, bundler would fail on local build, so the trick to that is to include the devkit tools into the path
D:\RailsInstaller\DevKit>type devkitvars.bat :: convenience script residing in the DevKit root dir used for :: manually configuring a Command Prompt environment to use the :: DevKit for compiling native Ruby extensions @ECHO OFF ECHO Adding the DevKit to PATH... SET RI_DEVKIT=%~dp0 SET PATH=%RI_DEVKIT%bin;%RI_DEVKIT%mingw\bin;%PATH%
The following error always comes up in relation to getting github connectivity:
git init git add . git commit -m "Initial commit, post RoR new new-app" git remote add origin firstname.lastname@example.org:drenovac/demo-app.git git push origin master Warning: Permanently added the RSA host key for IP address '126.96.36.199' to the list of known hosts. ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
After looking things up, I then went to github.com and made a blank repos for this, and the results appear to work:
git remote add origin https://github.com/drenovac/demo-app.git fatal: remote origin already exists. E:\dev\rails\demo-app>git push -u origin master Warning: Permanently added the RSA host key for IP address '188.8.131.52' to the list of known hosts. Counting objects: 83, done. Delta compression using up to 8 threads. Compressing objects: 100% (69/69), done. Writing objects: 100% (83/83), 23.89 KiB | 0 bytes/s, done. Total 83 (delta 2), reused 0 (delta 0) remote: Resolving deltas: 100% (2/2), done. To github.com:drenovac/demo-app.git * [new branch] master -> master Branch master set up to track remote branch master from origin.