Heroku usage problems

Hi friends,
My project is working in localhost easyly. When i push to heroku ,

  1. devise join is giving errror. (i used devise for rails 7)
  2. stream functions are giving error. like

class Room < ApplicationRecord
validates_uniqueness_of :name
scope :public_rooms, → {where(is_private: false)}
after_create_commit {broadcast_append_to “rooms”}
has_many :messages
end

Do you have any idea ?