This is only the style for the crowdvoice site.
The core is powered by crowd_engine.
https://gist.github.com/3098837
Technical information about server configuration and distribution, the application app is under Rails 3.0.9
Note: all servers are in Ubuntu 10.04 LTS (Lucid Lynx)
SERVER NAME | IP | BRANCH | ENVIRONMENT
crowdvoice | 173.203.58.89 | production | production
crowdvoice.staging | 50.57.231.31 | cloneapp | staging
- Nginx
- Unicorn
- Mysql
- Monit
- Imagemagic
- Redis
- Openssh
- Iptables
- Apparmor
- migrate_database : Fired when a user sign up a new installation and confirms email
- create_bucket : It creates an S3 bucket dedicated to the new server
- load_dummy_data : It insert a dummy voice to show how it will see
- destroy_server : It erases the database and the bucket of a custom installation
- validate uniqueness of server name
- validate use of number,letters and underscores only
- validates whitelist of words (mysql, production, etc)
- A user can have many installations
- The format is "crowdvoice-installation-" + server name
- The format is "crowdvoice_installation_" + server name
- Site name
- Logo
- Tagline
- Social Links (Twitter, Facebook)
- Title Intro Bar
- About Page (iframe of a doc)
ConnectionAdapter.connect_to(request.subdomain) : It reads the subdomain and contrusct with it the bucket and DB name
set_mailer_host : It set the domain to the default settings of Actionmailer on each request
ActiveRecord::Base.connection.instance_variable_get("@config")[:database].gsub('crowdvoice_installation_', '')
ConnectionAdapter.restore_connection