LoginSignup
0
0

More than 3 years have passed since last update.

[rails]アプリケーション作成

Last updated at Posted at 2020-07-30

rails newで作成

railsで新規アプリケーションを作成するのは簡単です。
rails newコマンドだけで作成できてしまいます。

$ rails new アプリケーション名

もしアプリケーション名を間違えたら?

アプリケーション名を間違えて作成してしまっても安心です。
このコマンドでアプリケーションを消してしまいましょう。

$ rm -rf アプリケーション名

rmはremoveの略称です。
-rf remove recursively forceの略)はコマンドオプションの1つで、「フォルダ内のすべてのファイルとフォルダを削除する」を意味します。

作成したアプリケーションを確認

rails newコマンドでアプリケーションの作成が完了すると以下のような画面が出ます。
この画面が出たら、成功です。

[vagrant@localhost sample_app]$ rails new sample_app
      create  
      create  README.md
      create  Rakefile
      create  .ruby-version
      create  config.ru
      create  .gitignore
      create  Gemfile
        run  git init from "."
Initialized empty Git repository in /home/ec2-user/environment/sample_app/.git/
      create  package.json
      create  app
      create  app/assets/config/manifest.js
      create  app/assets/javascripts/application.js
      create  app/assets/javascripts/cable.js
      create  app/assets/stylesheets/application.css
      create  app/channels/application_cable/channel.rb
      create  app/channels/application_cable/connection.rb
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/jobs/application_job.rb
      create  app/mailers/application_mailer.rb
      create  app/models/application_record.rb
      create  app/views/layouts/application.html.erb
      create  app/views/layouts/mailer.html.erb
      create  app/views/layouts/mailer.text.erb
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0