LoginSignup
2
0

Yay! I'm on Heroku!

Last updated at Posted at 2020-09-04

はじめに

前回の記事 - Qiitaに味を占めたので、外部公開にそなえHerokuに簡単なアプリを登録してみました。

アプリの内容は、@EightTreesCoffee さんのこの記事 - Qiitaパクリ参照させていただきました。

完成画面

20200905b.png
heroku アプリ

heroku インストール

C:\Users\user>npm install -g heroku

C:\Users\user>heroku --version
heroku/7.42.6 win32-x64 node-v12.18.2

sinatra

基本的には、こちらの記事 - Qiitaを参照させてもらいました

heroku open

20200905a.png
ぐぬぬ

WARNING:

warn.ing
Removing `Gemfile.lock` because it was generated on Windows.

Removing `vendor/bundle`.

You have not declared a Ruby version in your Gemfile.

WARNINGはほっておこう

heroku logs --tail

err.or
app.rb:2:in `require': cannot load such file -- sinatra/reloader (LoadError)

とりあえずコメントアウトで対応

まとめ

  • 初アプリ完成
  • @HEP さんありがとうございました
  • @EightTreesCoffee さんありがとうございました

参照したサイト
SinatraアプリをHerokuへデプロイする手順 - Qiita
【初学者向け】Ruby 遅延鉄道路線名の入手方法 - Qiita

2
0
2

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
2
0