Cloud9 (Rails) from Github
- Clone from Github
- Install bundle
- skillhub(source~,yarn install --check-files, rails webpacker:install)
- Create database
- Start the server
ex. About errors (contents and countermeasures)
Clone from Github
Let's clone it from Github first.
Check the URL of the source code on github and enter the command as follows.
$ git clone [URL of the source code to clone]
Install bundle
The clone is completed above, but since I just cloned the application from git, when I try to start the server, an error occurs.
First, let's do bundle install so that the application can be run in your local environment.
$ bundle install
-
- Download YARN
Type the following command. This command will even download the necessary files.
$ source <(curl -sL https://cdn.learnenough.com/yarn_install)
- Install YARN
Install yarn with the following command.
$ yarn install --check-files
-
- Install WEBPACKER
$ rails webpacker:install
- Create database
Let's create a database.
The following command will create a database based on the settings in config / database.yml.
- I stumbled here in the past lol If you are interested, please refer to it.
[Elementary mistake] Story when I stumbled on creating a database-from cause to solution
$ rails db:create
$ rails db:migrate
fsff