[Today's stack # 1] Until on rails on cloud9

result

This article (https://skillhub.jp/courses/134/lessons/785) Based on, I ran the rails server on cloud9 and completed until I saw the screen of "Yay! You're on Rails!".

As a prior knowledge, I have taken the Rails learning course I of Progate.

However, there was a stumbling block even with such a simple procedure, so I will create this article as a memorandum.

procedure

--Cloud9 environment creation --Install Rails -** Creating a directory and moving an operation folder ** --Yarn, installation of webpacker --rails server start and stop

Details of the error

In conclusion, the installation of yarn and webpacker didn't work, and I got an error over and over again, and repeated things like "I'm not sure, so start over from creating the environment". image.png

In addition to the error in this image, there were also command mistakes and typographical errors, which made me confused.

Cause

The operation directory was incorrect (= yarn and webpacker were installed incorrectly).

On the reference site, I did not think that it was important because I was rushing to create a directory → move the directory without any explanation, and somehow I was convinced that "If you install it, you should use the home directory !!" It seems that he was throwing an error because he was working with it.

Question and reflection

Even if the installation location has changed, can I continue working even if I force it by passing a path like an environment variable in windows?

Anyway, it seems that it is better to think a little more about building the environment. It was not until I looked back that I realized that there was a lack of detail in my work because I was in a hurry to create a portfolio.

that's all

Recommended Posts

[Today's stack # 1] Until on rails on cloud9
[Ruby on Rails] Stop "looping until ..."
Tailwind on Rails
Rails new in Ruby on Rails ~ Memorandum until deployment 2
Rails new in Ruby on Rails ~ Memorandum until deployment 1
Launch Rails on EC2
Test run on rails
Ruby on Rails Elementary
Yay! I'm on Rails!
Ruby On Rails Association
Cloud9 (Rails) from Github
Created the first LINEbot on AWS Cloud9 (Rails + Heroku deployment)
Resolve ActiveRecord :: NoDatabaseError on rails6
Ruby on rails learning record -2020.10.03
Rails6 (MySQL, Ubuntu environment, Cloud9)
Portfolio creation Ruby on Rails
Install Sidekiq pro on Rails
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09
Ruby on Rails config configuration
Ruby on Rails basic learning ①
[Ruby on Rails] about has_secure_password
Ruby on rails learning record-2020.10.07 ②
Yay! I'm on Rails! Repetition
Install Rails on macOS Catalina
Commentary on partial! --Ruby on Rails
Post a video on rails
Update RVM on AWS Cloud9
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
Ruby on rails learning record -2020.10.06
Ruby on Rails validation summary
Ruby on Rails Basic Memorandum
I summarized the flow until implementing simple_calendar in Ruby on Rails.