PLEASE NOTE, BEFORE YOU BEGIN THIS LESSON:
Look inside the main Rails folder called "blog". You will see a file called "Gemfile".In that file, look for a line that says:
gem 'sqlite3'Update that line so that it says:
gem 'sqlite3', '1.3.13'Through out the course, you may make changes to this file and even move that line of code within the file. However, always ensure that it has the version number '1.3.13' next to it like above. Software versions change over time, but by putting that version number there, you'll ensure that your application works exactly as shown in the videos.
cd cd environment cd blog bundle install bundle updatePlease note that in the video, you'll see the word "workspace", however, in the AWS version of Cloud9 you should simply mentally substitute this for the word "environment". So, anytime you see the instructor type the word
environmentinstead. While you'll be reminded again, please note that this applies throughout the remainder of this course. Now you're all set to move on with the lesson!
◎ = Not Started
◉ = Started
✓ = Completed
and hit enter. That will make your command prompt "jump" to the highest folder level.
cdcommand stands for "change directory" and it expects a folder name of any existing folder that is visible to the prompt. The catch here is that you didn't type in the folder name, but rather the word
environment. Amazon has setup Cloud9 so that your main folder (no matter what you named it when you created your Cloud9 environment) is referred to as
environment- in the video, since a slightly older version of Cloud9 was used, that folder used to be referred to as
workspace, so in the following lessons, although you'll see the instructor typing the word
workspace, you should be typing the word
blog. You were able to "jump" into this folder because it sits directly one level underneath your main (environment) folder. You can, however, jump multiple levels deep with one command. Try the following. First, jump all the way out to the top level:
rails server -b $IP -p $PORT- you don't have to write that full command however. Again, that was required with the old version of Cloud9, but now you can simply write
rails serveror even just
rails sfor a more shorthand version of the command.