For camps, you know.
bundle install
rake db:create db:schema:load db:seed
rails server
Go to http://devel.example.org.127.0.0.1.xip.io:3000/ .
eval $(ssh-agent)
ssh-add
cap production deploy
- Create tenant
attributes = {
name: '20er Summercamp 2017',
subdomain: '20er-summer2017',
starts: '2017-09-02',
ends: '2017-09-09',
hashtag: 'zwzgrsummercamp',
allow_sign_up: false,
welcome_mail: Camp.find(5).welcome_mail,
welcome_text: 'Welcome',
reply_to: 'buddy@campbuddy.ch',
registration_opens: '2017-09-02',
}
camp = Organization.find(2).camps.create! attributes
Apartment::Tenant.switch camp.schema_name
User.create! email: 'raffael@yux.ch', firstname: 'Raffael', name: 'Schmid', password: 'passwordhere', admin: true
- Add domain
heroku domains:add ${DOMAIN}
Available Variables:
{{firstname}}
replaced by the firstname of the user{{invitation_url}}
replaced by the invite url to get the user started
Apartment::Tenant.switch! 'tenant'
ActionMailer::Base.default_url_options = { host: 'tenant.host' }
User.real_users.find_each(&:send_welcome_mail)