This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 79498b7c83f49b919db27c491b3feb5438e14b5a
tree e4dc5a1ef66afa221da917ffc386b6cee303dd35
parent 71045d86a45bdc84a17f5d8ff7184a6b0146a4db
tree e4dc5a1ef66afa221da917ffc386b6cee303dd35
parent 71045d86a45bdc84a17f5d8ff7184a6b0146a4db
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jun 23 09:23:00 -0700 2009 | |
| |
Capfile | Tue Jun 23 09:13:19 -0700 2009 | |
| |
README | ||
| |
Rakefile | Tue Jun 23 09:13:19 -0700 2009 | |
| |
app/ | ||
| |
config/ | ||
| |
db/ | ||
| |
doc/ | ||
| |
lib/ | Tue Jun 23 09:13:19 -0700 2009 | |
| |
photoshop/ | Tue Jun 23 09:13:19 -0700 2009 | |
| |
public/ | Tue Jun 23 09:13:19 -0700 2009 | |
| |
script/ | Tue Jun 23 09:13:19 -0700 2009 | |
| |
test/ | Tue Jun 23 09:13:19 -0700 2009 | |
| |
tmp/ | Tue Jun 23 09:13:19 -0700 2009 | |
| |
vendor/ | Tue Jun 23 09:13:19 -0700 2009 |
README
RAILS PHOTOGRAPHER ------------------ This is a fairly simple web site for photographers. FEATURES -------- * Static About, Pricing, and FAQ sections. * Home page displays 6 Categories (Albums) that lead to javascript galleries. * Configurable variables for the site name, location, email, etc. * Capistrano deploy ad backup script sample * Admin section where you can manage categories and their photos, and client's and their photo previews. * Client section where your client's can preview their photos. * Contact form. INSTALLATION ------------ Some familiarity with Ruby on Rails and Linux administration recommended. 1. Rename /config/database.yml.same to /config/database.yml and enter your database connection information. 2. Rename /config/initializers/photographer.rb.sample to /config/initializers/photographer.rb and enter in your site information. 3. Rename /config/site_keys.rb.sample to /config/site_keys.rb and enter in a unique key (just make something up) 4. Rename /config/session_store.rb.sample to /config/session_store.rb and enter in a unique key (just make something up) 5. Replace /public/favicon.ico with your own favicon (displayed in the browsers address bar) 6. Create the directory /public/attachments 7. Run the server (./script/server) 8. Go to localhost:3000/admin and setup your 6 categories. You should be up and running location now. DEPLOYMENT ---------- 1. Rename /config/deploy.rb.sample to /config/deploy.rb and enter in your deployment information. 2. Make sure capistrano is installed (sudo gem install capistrano) 3. Run the cap deploy setup. "cap deploy:setup" 4. ssh into your server and create the following directories: * /var/www/applicationname/shared/attachemnts/ * /var/www/applicationname/shared/database.yml * /var/www/applicationname/shared/photographer.rb 5. Run the deploy script. "cap deploy" BACKING IT ALL UP ----------------- I recommend doing a daily backup of the database into a git repository, however there is a backup option included in the deploy script. Run "cap backup:bootstrap" This will dump the mysql database to file, zip it up and download it, it will also tar up the attachments directory (your uploaded photos) and download it.








