A bootstrap script to start Fever on Heroku
As you all may know, Google announced that their RSS agregator service, Google Reader going to shut down. To me this is really sad news becuase I relied on Google Reader and Reeder for iOS. Just after hearing the news I've been looking for good substitute, then finally I found Fever (http://feedafever.com/)
Although Fever has a nice feature that it automatically picks up hot news, it requires your own server. Even though many people can have their own server today, it's a little more difficult than just using other hosting services.
However Justin Morris wrote up whole instruction to set up Fever on Heroku platform so that you don't have to have your own servers.
Based on his instruction, I wrote a tiny script to boot up your own Fever service on Heroku.
- Paypal account (http://paypal.com)
- Fever account (http://feedafever.com)
- Heroku account (http://heroku.com)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/maloninc/fever-on-heroku-bootstrap/master/bootstrap.sh)"
or
Download and run this simple script.
Step 2: After running the script, you will see your browser opening your own Fever site as the following
You will see the following information just right after running the script.
Here is MySQL database credential
========================================
Array
(
[scheme] => mysql
[host] => xx-xxxx-xxxx-00.cleardb.com
[user] => xxxxxxxxxxxxxxxx
[pass] => xxxx
[path] => heroku_xxxxxxxxxxx
[query] => reconnect=true_
)
========================================
NOTE: "path" is the database name, just leave out the / at the start
Enter your e-mail address and password to login to your own RSS server. You can chose your favorite temperature scale from Celsius and Fahrenheit.
heroku addons:open scheduler
./refresh.sh http://<YOUR-HEROKU-APP>/ <FEVER-ACTIVATION-KEY> <DB_SERVER_NAME> <DB_NAME> <USERNAME> <PASSWORD>
Becuase Heroku will restart the instance every day, causing Fever lock you out, refresh.sh script re-activate your Fever automatically. Also MySQL addon ClearDB which your Fever used has a limitation of 5MB storage, as a reslution purge.php script which is called in refresh.sh removes old data which are 2+ days before.
Thanks to Justin Morris for writing up a gist this bootstrap is based on.
https://gist.github.com/plasticine/5175588
- Mac OS X 10.8