Sitesx v0.11.0 Sitesx.EnsureDomain View Source

Periocially ensures dns record to the Database.

Automatically to run

config :sitesx
  ensure_domain_interval: 5_000  # Default: 600_000 milliseconds (if want disable, set 0 number)

Manually to run

Sitesx.EnsureDomain.start_link

Database result

postgres@(none):dbname_dev> select * from sitesx;
+------+--------------+-------+----------------------------+----------------------------+
|   id | name         | dns   | inserted_at                | updated_at                 |
|------+--------------+-------+----------------------------+----------------------------|
|    1 | www          | True  | 2017-04-18 03:14:29.984272 | 2017-04-18 03:14:30.004545 |
|    2 | subdomain2   | True  | 2017-04-19 03:49:41.532552 | 2017-04-19 03:49:41.532607 |
|    3 | subdomain3   | False | 2017-04-19 09:22:15.460342 | 2017-04-19 09:22:15.472465 |
|    4 | subdomain4   | True  | 2017-04-19 10:25:25.218343 | 2017-04-19 10:25:25.218349 |
+------+--------------+-------+----------------------------+----------------------------+

Link to this section Summary

Functions

Manually trigger a ensure dns records. Also resets the current timer

Reset the purge timer

Link to this section Functions

Manually trigger a ensure dns records. Also resets the current timer.

Reset the purge timer.

Link to this function start_link(state, opts \\ []) View Source