Rails is really a collection of pieces that can be put together to create a web app. You can enhance or replace many of the components - how you write views, how controllers work, and how you build models. While models are built on top of ActiveRecord in the
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pid_full = '/tmp/my_daemon.pid' | |
def run | |
EM.run{ | |
Signal.trap('INT') { stop } | |
Signal.trap('TERM'){ stop } | |
# your daemon code runs here. This will not exit since it is running in EM | |
} | |
end |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
$ rails new my-i8n --webpack
Gemfile
gem 'i18n-js'