简体   繁体   中英

how do I set up RPush in rails?

I'm a bit confused on how to do some of the config for Rpush when starting from the Rails environment. If I just want to Rpush.embed and run within this same process, where should I call Rpush.embed? Does this go in the initializer? I am also unclear on the best place to set up my apps. I see there is a nice feature for signaling rpush to re-read from the configured app, but where do I configure the app itself? I see that I can do this with active model calls, but I obviously don't want to create a new app everytime I start the rack (or rails).

使用数据库迁移创建应用,将Rpush.embed放在config.ru中

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM