codeforboston / CutePetsBoston

This is a twitter bot that posts a random adoptable pet from Petfinder.com.
https://twitter.com/CutePetsBoston
MIT License
7 stars 3 forks source link

deploy and document deployment #4

Closed ohnorobo closed 10 years ago

ohnorobo commented 10 years ago

This project should be set up on free-tier heroku using the heroku scheduler to tweet at intervals https://addons.heroku.com/scheduler

There should be very complete documentation for this. We want to make this app easy to deploy at other locations that use Petfinder.com

beechnut commented 10 years ago

I would re-title this issue as 'Deploy'. The Code for Boston server (DigitalOcean) is a great place for this, with no external services required. Less fragmentation, too.

It'll require a little Capistrano, but we have people who can do & teach that. And some cron.

ohnorobo commented 10 years ago

Either is fine with me as long as it's documented. (Probably add a 'tweet periodically' section to the readme)

ohnorobo commented 10 years ago

I think capistrano might be overkill for this since the only setup is

Just adding an example crontab file to the repo and a readme comment should be enough.

# add the following to your crontab (using crontab -e)
# tweets at 8:00am and 4:00pm every day
00 08,16 * * * cd /path/to/cuties && /usr/local/bin/rake tweet
beechnut commented 10 years ago

You are correct -- it's overkill. :+1: to a cron example and documentation.

beechnut commented 10 years ago

I set up my work computer and not my home one with all the SSH config. If we're looking to deploy tonight, I'd recommend someone else (cough @ohnorobo) do it & document it.