|
InstallingSubstruct
Installing SubstructIntroductionSubstruct is not meant for end users or novices to install. This is a software program made for professional web developers. If you don't have experience developing software you could be extremely frustrated by this process. These directions assume you already have a working Rails hosting environment. This means...
These directions also assume you have some familiarity with developing Rails applications in general and a working knowledge of your file system. Installation1. Install ImagemagickImagemagick is required to resize image files that are uploaded for your products and content. There are various ways to install it, depending on the operating system you're running. Here's a link on how to compile ImageMagick from source This example probably doesn't cover every scenario. If you're confused, please google "how to install imagemagick (your operating system here)" 2. Download & extract the latest releaseAll releases are stored as tar / gzipped files here: http://code.google.com/p/substruct/downloads/list They are marked with version numbers. Grab the latest one and extract it using TAR or a similar utility. If you don't know how to extract tarred/gzipped files please go google that. If you'd rather use SVN to download the latest code click here. 3. Edit your database.yml fileYou'll need to have a running database to use Substruct.
We recommend the following database setup:
Edit your database.yml file to make sure that Rails can access your database properly. For more information on the database.yml file, visit this url: http://wiki.rubyonrails.org/rails/pages/database.yml 4. Compile vendored gemsSubstruct stores required gem files in the vendor/gems folder for ease of installation. This means you don't have to require the gems, but you still have to build them for your native platform. Run the following command. rake gems:build 4. Initialize your databaseRun this command from inside the substruct directory you extracted previously rake db:create rake substruct:db:bootstrap UsageFire up your environment! ruby script/server Try to login to http://localhost:3000/admin as ''admin'' / ''admin'' MiscIf you're going to be doing credit card transactions you need a processor account. Check out how to get one. Make sure you check out how to maintain Substruct via cron as well. |