1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cloud9上でのsinatra環境の構築メモ

Posted at

1. gemがインストールされているか確認

$ gem

2. bundlerのインストール

$ gem install bundler

3. bundlerの初期化

$ bundle init
→Gemfileが生成される

4. Gemlileにgemを記入

gem "sinatra" gem "sinatra-reloader" gem "sinatra-activerecord" gem "sqlite3" gem "rake"

5. gemを一括でインストール

$ bundle install --path vendor/bundle
※次回からは--path vendor/bundleを記憶するらしい

6. app.rbを作成&requireを記述

require 'rubygems' require 'bundler'

7. 動作確認

app.rb
puts 'Hello!'

$ bundle exec ruby app.rb

参考

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?