4
6

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.

Google App Engine / Ruby のapp.yamlの生成

Posted at

TL;DR

  • GAE/Rubyを動かすためのapp.yaml を生成する

command


-> % gcloud preview app gen-config

This looks like a Ruby application. Please confirm the command to run
as the entrypoint: [bundle exec rackup -p $PORT]:
Writing [app.yaml] to [/Users/TakumiKanzaki/Sites/gae.sample.com].
All config files already exist, not generating anything.
  • current directoryのソースを適当に判断してくれて生成してくれる
  • entrypoint のところにapp を起動するコマンドを書けば基本的にはok

app.yaml


-> % cat app.yaml
api_version: 1
entrypoint: bundle exec rackup -p $PORT
runtime: ruby
vm: true
  • 最低限の設定だけ生成されるので、他に必要な設定は自分で書く

Ref

4
6
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
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?