hadley / crantastic
- Source
- Commits
- Network (3)
- Issues (9)
- Downloads (1)
- Wiki (2)
- Graphs
-
Tree:
bc936bf
tree 4edc7e0d7bf2b88f3fae18ab2bf38eee4a5aef83
parent 99c6ece115216fd35cb28dc687de384bf32d17f9
| name | age | message | |
|---|---|---|---|
| |
.braids | ||
| |
.gems | ||
| |
.gitignore | ||
| |
README.markdown | ||
| |
Rakefile | Tue Aug 11 14:27:34 -0700 2009 | |
| |
app/ | ||
| |
config/ | ||
| |
db/ | ||
| |
doc/ | Thu Jun 18 06:05:42 -0700 2009 | |
| |
lib/ | ||
| |
log/ | Fri Mar 27 06:01:08 -0700 2009 | |
| |
public/ | ||
| |
script/ | Tue May 12 06:42:47 -0700 2009 | |
| |
spec/ | ||
| |
vendor/ |
Crantastic
The project is described here. Some other links of interests are:
The rest of this document contains various pieces of information relevant for developers/contributors.
Coding conventions
The YARD meta-tag formatting format is usued for documentation, whenever it feels necessary.
Development
Copy config/database.sample.yml to config/database.yml. It defaults to
SQLite, so no additional configuration of this file is necessary unless you want
to use PostgreSQL (which the site runs on in production).
Run rake gems:install to install gem dependencies for the main site.
Do RAILS_ENV=test rake gems:install to install the dependencies for the
testing environment (required for running rake spec).
Using autospec while doing changes to the source code is highly recommended,
as this is very helpful for catching accidental regressions.
Note that you should only add/edit stylesheets in the app/stylesheets folder.
public/stylesheets should only contain compiled Sass styhesleets.
Working with Heroku
Setting up the Heroku remote
git remote add heroku git@heroku.com:crantastic.git
Confirm that it's working by running heroku info.
Pulling the latest database from crantastic.org
heroku db:pull
This will overwrite db/development.sqlite3.
Pushing your work to Heroku
git push heroku master
Personally I use an alias so I don't have to type as much:
alias gph='git push heroku master'
Updating packages from CRAN
Run rake crantastic:cron or rake crantastic:update_all_packages.


