Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Supabase x Ruby on Rails

4geru sakisaka
May 31, 2024
230

Supabase x Ruby on Rails

Shinjuku.rb #92 好きなもの紹介LT大会 での登壇資料です。
https://shinjukurb.connpass.com/event/317784/

4geru sakisaka

May 31, 2024
Tweet

Transcript

  1. ɾ΋ͪΖΜSBJMTDPOTPMF͔Β΋σʔλͷ࡞੒ɺࢀর͕Մೳʂ SBJMTDPOTPMF͔Βσʔλͷ௥Ճ bin/rails console article = Article.new( title: "Hello Rails”,

    body: "I am on Rails!” ) article.save # Saves the entry to the database Article.all 4UFQ4VQBCBTFͷઃఆ
  2. ɾ fl ZJPʹ3BJMTΞϓϦΛσϓϩΠ͠·͢ɻ GMZJPʹσϓϩΠ 4UFQ fl ZJPʹσϓϩΠ fly launch #

    => select postgresql = none fly secrets set DATABASE_URL=$DATABASE_URL fly deploy fly apps open