Drezyna is a Rails application stack used at Nukomeet.
By default, Drezyna is running on ruby 2.1.2.
thin used for both development and production servers.
PostgreSQL 9.3 with ActiveRecord
minitest with fabrication
Remapped routes:
/users/sign_into/login,/users/sign_outto/logout/users/sign_upto/register
slim is the template language.
foundation, simple_form and compass
The application is configured to send email using a Mandrill account. Email delivery is disabled in development.
rails consoleruns pry by default.- helpers generation turned off in
application.rbwithconfig.generators.helper = false
git clone https://github.com/nukomeet/drezynamv drezyna sampleapp
cd sampleapp
bundle
rails g rename:app_to SampleAppCreate a .env file based on .env.sample:
cp .env.sample .env
curl -o config/database.yml https://gist.githubusercontent.com/zaiste/10378957/raw/50dfe7f2dd2050e2903aff187fb7e11ec702fc15/database.ymlEdit config/database.yml and replace NAME and USER_NAME with your own values.
Edit test/fixtures/users.yml and put at least one user.
Create and fill DB:
rake db:create
rake db:migrate
rake db:fixtures:load
foreman run rake db:seedIf you're a Pow user
Set your env readable by Pow:
echo "
export PORT='5000'
export ADMIN_NAME='bonjour'
export ADMIN_EMAIL='bonjour@nukomeet.com'
export ADMIN_PASSWORD='bienvenue'
export MANDRILL_USERNAME='name@domain.com'
export MANDRILL_APIKEY='CHANGEME'
export SECRET_KEY_BASE='<run `rake secret` command and put here the result>'
export NEW_RELIC_LICENSE_KEY='CHANGEME'
export NEW_RELIC_APP_NAME='CHANGEME'
" > .powenvSet and access your app:
cd ~/.pow
ln -s /path/to/your/app/sampleapp .
open http://sampleapp.devforeman startAccess localhost:5000 and enjoy your new application.