Skip to content

Commit

Permalink
Added Deploy Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni committed Jan 16, 2015
1 parent 2f19242 commit 3ba35f3
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
9 changes: 5 additions & 4 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

# Name: StudyBug
# Author(s): Grant McGovern & Gaurav Sheni
# Date Created: 16 March 2013
# Date: 16 March 2013
#
# URL: www.github.com/g12mcgov/studybug
#
# URL: https://github.com/gsheni/StudyBug
#

import os
Expand Down Expand Up @@ -108,7 +109,7 @@ def bookRooms(user):
driver = webdriver.PhantomJS()
driver.get(url)

# This is a PhantomJS but remedied by the following method call... should
# This is a PhantomJS bug remedied by the following method call... should
# look into a fix for this.
driver.set_window_size(2000, 2000)

Expand Down Expand Up @@ -397,7 +398,7 @@ def confirm(url, room, rows):

driver = webdriver.PhantomJS()

# This is a PhantomJS but remedied by the following method call... should
# This is a PhantomJS bug remedied by the following method call... should
# look into a fix for this.
driver.set_window_size(2000, 2000)

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ To run, simply open up a Terminal and execute:

Currently, StudyBug is being run as a nightly job via [Heroku](http://www.heroku.com). Heroku is pretty easy to setup and has the advantage that uses <code>git</code> to commit code. Heroku also has a nice Scheduler add-on and awesome logging configurations, making it the best possible choice.

However, you can use really whatever you like. You could schedule StudyBug via Cron, or even host it on a cloud-service such as Amazon EC2, Cloud Foundry, etc...
However, you can use really whatever you like. You could schedule StudyBug via Cron, or even host it on a cloud-service such as Amazon EC2, etc...

If you'd like to deploy your own instance to Heroku, you can do so here:

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)


Logging
Expand Down
7 changes: 7 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "StudyBug",
"description": "A web crawler that books study rooms in the ZSR library at WFU",
"repository": "https://github.com/g12mcgov/StudyBug",
"logo": "http://i1158.photobucket.com/albums/p618/g12mcgov/687474703a2f2f69313135382e70686f746f6275636b65742e636f6d2f616c62756d732f703631382f6731326d63676f762f556e7469746c656464726177696e672d312e.png",
"keywords": ["python", "express", "static"]
}
2 changes: 1 addition & 1 deletion config/studybug.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ END_TIME=11:30 PM
URL=http://zsr.wfu.edu/studyrooms/
SELENIUM_TIMEOUT=10
EMAIL[email protected]
PASSWORD=********
PASSWORD=grantmcgovern1
8 changes: 4 additions & 4 deletions credentials/credentials.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mcgoga12,*******
kleitc13,*******
diazja13,*******
keanns13,*******
mcgoga12,ga120206
kleitc13,2Babbers
diazja13,tyler123
keanns13,ETY5G2

0 comments on commit 3ba35f3

Please sign in to comment.