Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
/ vertex Public archive

Weekly review service for GTD

Notifications You must be signed in to change notification settings

codefirst/vertex

Repository files navigation

Vertex

Weekly review service for GTD

Setup

copy dot.env to .env, and edit it.

DEVISE_SECRET_KEY

Generate secret key

bundle exec rake secret

OMNIAUTH_PROVIDER, OMNIAUTH_ARGS

For example, omniauth-twitter needs an initializer as follows:

Devise.setup do |config|
  config.omniauth :twitter, 'CONSUMER_KEY', 'CONSUMER_SECRET'
end

then you should set environment variables as follows:

OMNIAUTH_PROVIDER=twitter
OMNIAUTH_ARGS="['CONSUMER_KEY','CONSUMER_SECRET']"

See config/initializers/devise.rb

run

$ yarn build # or yarn dev for developers
$ bundle install --path .bundle
$ bundle exec rake db:migrate
$ bundle exec rails s

Task

notify for all users by command

# notify immediately
$ bundle exec thor notification:notify
# per user
$ bundle exec thor notification:notify nickname

# notify by user's schedule setting
$ bundle exec thor notification:cron_notify
# per user
$ bundle exec thor notification:cron_notify nickname

License

The MIT License (MIT) Copyright (c) 2014 codefirst