🕐 Schedule changes to your Twitter name, bio, and profile picture (like Buffer)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Form
Handler
Helper
Import
Model
Settings
app
bin
config
migrations
sass
src
static
templates
test
.dir-locals.el
.dockerignore
.env.test
.ghci
.gitignore
.sample.env
Dockerfile
Procfile.local
README.md
app.json
circle.yml
croniker.cabal
stack-bootstrap
stack.yaml

README.md

Croniker

It's Buffer for Twitter names.

Setup

Make sure you have Stack installed. On OS X, you can do brew install haskell-stack.

Then run ./bin/setup.

Running the server

foreman start -f Procfile.local

This will start Yesod and tell Sass to recompile the CSS whenever a file in sass/ changes.

Now visit http://localhost:3000.

Running a task

To update all of the unsent profiles scheduled for today:

stack exec todays-profiles

To update all of the profiles, regardless of when they're scheduled or whether they've been sent:

stack exec all-profiles

all-profiles is meant to be used for local testing.

Running tests

stack test

Running ghci

./bin/ghci

Adding a new executable

If you add a new executable in croniker.cabal, run stack build so that you can run it with stack exec new-executable.

Sass

  • In a separate terminal, run sass --watch sass:static/css
  • Edit files under sass/
  • Commit both the Sass files and the generated CSS files

Static Files

If you add a new file in static/, run touch Settings/StaticFiles.hs to have Yesod pick up the routes for the new files.

Deploying

To deploy to staging:

./bin/deploy staging

To deploy to production:

./bin/deploy production