public
Description: Ruby on Rails Photographer Site including galleries, admin area, and client sections.
Homepage: http://www.railsphotographer.com
Clone URL: git://github.com/rapind/photographer.git
rapind (author)
Tue Jun 23 15:26:39 -0700 2009
commit  a46eeb9dfea0f2028032bf41d20e5ac406a0e3f6
tree    7e881f1a4580b4763beccd1ff874b9c6b46a6e0e
parent  83ad155816083b8fa8f7592a55e231fa312bb4e1
photographer / README
100644 55 lines (40 sloc) 2.354 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
RAILS PHOTOGRAPHER
------------------
 
This is a fairly simple web site for professional photographers. To see a live demo visit: http://www.railsphotographer.com
 
 
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.
* Search Engine Optimization
 
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. Create and migrate the database: "rake db:create" "rake db:migrate"
8. Run the server (./script/server)
9. Go to localhost:3000/admin and setup your 6 categories.
 
 
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.