[RUBY] If you want to recreate the instance in cloud9

I will write an article for the first time. This is my own note

I made a mistake in setting cloud9. The storage capacity of EC2 has been overwhelmed by the free frame. I don't understand anything else and want to start from the beginning again. In that case

It is assumed that you are pushing to github. Clone that push to cloud9.

Create a new instance on loud9. I followed the rails tutorial for the settings at the time of creation.

Check if git is included (it was already included in my environment).

Next, I will give the newly created instance the information of my github.

git config --global user.name USER_NAME

git config --global user.email EMAIL_ADDRESS

Assign your user name and email address to USER_NAME and EMAIL_ADDRESS. In the case of I,

git config --global user.name irojiroserika

It will be.

There is no particular response, but it's okay. If you make a mistake in your user name here, you can enter it again.

Then find the URL of the commit you want to clone. See image (Click on the green part to see it.)

キャプチャ.PNG

Finally git clone that URL

And the clone itself is finished. please confirm the file.

However, rails server does not start even if I try to start development from here, so run bundle install.

Attention here I hijacked the rails tutorial and rewrote the Gemfile, so the db used for development and the db used for production are different. in this case

bundle install --without production

If you don't run it, you will get an error that the production gem cannot be installed during bundle install, and as a result, the rails server will not start.

So bundle install When bundle install --without production Also run.

Oh yeah

Rails server will not start even if yarn is not included, so please install yarn. At this time

Your Yarn packages are out of date! Please run yarn install --check-files to update.

I think that the message will be returned, but if yarn is not included in the first place yarn install --check-files Can't be executed in the first place,

source <(curl -sL https://cdn.learnenough.com/yarn_install) (Cloud9 environment)

Please execute.

This will launch the rails server.

This is really the last.

If you execute rails db: migrate, you will be able to see the cloned application without any error.

It's for myself, but I hope it helps.

Recommended Posts

If you want to recreate the instance in cloud9
If you want to include the parent class in Lombok's @builder
If you just want to run your containers in the cloud, Azure Container Instances is easy
If you want to satisfy the test coverage of private methods in JUnit
[PostgreSQL] If you want to delete the Rails app, delete the database first!
If you want to change the Java development environment from Eclipse
What to do if Cloud9 is full in the Rails tutorial
What to do if you forget the root password in CentOS7
[Swift] When you want to know if the number of characters in a String matches a certain number ...
If you want to mock a method in RSpec, you should use the allow method for mock and the singleton method.
If you want to dynamically embed values & add text to attribute values in Thymeleaf 3
If you want to modify database columns etc.
When you want to bind InputStream in JDBI3
When you want to use the method outside
I want to get the value in Ruby
[RSpec] When you want to use the instance variable of the controller in the test [assigns is not recommended]
What to do if you get the error message unrecognized selector send to instance "***"
You may not want to use the remove method in ArrayList very often
I was addicted to the NoSuchMethodError in Cloud Endpoints
I want to embed any TraceId in the log
If you want to separate Spring Boot + Thymeleaf processing
If you want to use Mockito with Kotlin, use mockito-kotlin
When you want to dynamically replace Annotation in Java8
If you want to know the options when configuring Ruby, see `RbConfig :: CONFIG ["configure_args "]`
What to do if you can't get the text of an element in Selenium
Solution if you delete the migration file in the up state
What to do if you get a java.io.IOException in GlassFish
I want to set the conditions to be displayed in collection_check_boxes
If you want to study programming at university, go to Australia
[# 3 Java] Read this if you want to study Java! ~ Carefully selected ~
When you want to change the MySQL password of docker-compose
I want to transition to the same screen in the saved state
What to do if you can't use the rails command
I want to simplify the conditional if-else statement in Java
What to do if you don't see the test code error message in the terminal console
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
Use JLine when you want to handle keystrokes on the console character by character in Java
Memo that transitions to the login screen if you are not logged in with devise
I want to recreate the contents of assets from scratch in the environment built with capistrano
When you want to reflect the Master Branch information in the Current Branch you are currently working on
If hash [: a] [: b] [: c] = 0 in Ruby, I want you to extend it recursively even if the key does not exist.
[Rails / Routing] How to refer to the controller in the directory you created
Pass the i18n locale to JavaScript
What to do if you get a gcc error in Docker
ProxyFactory is convenient when you want to test AOP in Spring!
[For super beginners] The minimum knowledge you want to keep in mind with hashes and symbols
When you want to ZIP download the image data saved locally
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do when you want to know the source position where the method is defined in binding.pry
What to do if you get a DISPLAY error in gym.render ()
I want to remove the top margin in Grouped UITableView (swift)
Determine if the strings to be compared are the same in Java
[Java] I want to perform distinct with the key in the object
I want to change the value of Attribute in Selenium of Ruby
[Android] I want to get the listener from the button in ListView
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
What to do if you forget the root password in CentOS7
The first thing to do when you want to be happy with Heroku on GitHub with Eclipse in Java
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
What to do if Operation not permitted is displayed when you execute a command in the terminal
[Rails + Webpacker] I want to use images of assets! Until you can view the image in Vue.js