- git clone Discourse
gem install rubberrubber vulcanize discourse- Edit rubber.yml
cap rubber:create_stagingand you've got a fully functioning discourse site
###Long Version:
git clone https://github.com/discourse/discourse.gitcd discourseecho "gem 'rubber', github: 'ScotterC/rubber', branch: 'discourse'" >> Gemfilebundlerubber vulcanize discourse, reply with n to overwrite questions- Edit config/rubber/rubber.yml
- app_name: discourse
- domain: discourse.com
- If AWS:
access_key: AWS_KEYsecret_access_key: AWS_SECRETaccount: AWS_ACCOUNT- key_name and key_file # => Requirse EC2 keypair
image_type: m1.smallstaging_roles: "web,app,db:primary=true,redis_master,sidekiq,discourse"
- Edit config/rubber/rubber-ruby.yml
ruby_version: 2.0.0-p247
- Edit Gemfile
- remove last 'rubber' line # => won't be necessary once template is merged
bundlecd config/cp redis.yml.sample redis.ymlcp environments/production.rb.sample environments/production.rbcd ../
cap rubber:create_staging- Prompts:
- hit return for hostname
- hit return for roles if they mimic above staging roles
- computer password for access to /etc/hosts
- Prompts:
- if it fails with
vboxadd: unrecognized service. Make sure you're not using Capistrano 2.15.15. Comment outreinstall_virtualbox_additionstask in rubber/deploy-setup.rb and runcap rubber:bootstrap && cap deploy:migrations - When finished. In your browser
production.discourse.comshould be a discourse site - Add DNS to make it public