mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 01:36:02 +02:00
Basic delayed job implementation
This commit is contained in:
parent
6aa82dd222
commit
4cedb2cf78
12 changed files with 126 additions and 1 deletions
23
doc/whois.rm
Normal file
23
doc/whois.rm
Normal file
|
@ -0,0 +1,23 @@
|
|||
Connection with whois
|
||||
------------------------------------
|
||||
|
||||
The easiest way to get started without whois is to change Settings.whois_enabled to false. But like expected,
|
||||
that disables whois (effects should fully be loaded after restarting the app)
|
||||
What whois_enabled=false does is that the whois callback does not get included.
|
||||
Delayed jobs migration and everything else will still be installed tho.
|
||||
|
||||
If you wish to use the whois module, tho, you need a whois database looking something like this
|
||||
|
||||
```ruby
|
||||
create_table :domains do |t|
|
||||
t.string :name
|
||||
t.text :body
|
||||
t.timestamps
|
||||
end
|
||||
```
|
||||
|
||||
NB! Migration with rake tasks is available in whois app repo.
|
||||
|
||||
For development, delayed_job queue can be handled by rake task
|
||||
`rake jobs:work` or if you wish to be fancy you can use a daemon with `bin/delayed_job start`
|
||||
``
|
Loading…
Add table
Add a link
Reference in a new issue