|
||||
---|---|---|---|---|
app | 1b38d206cf | преди 10 години | ||
bin | def60a0d18 | преди 10 години | ||
config | 22b70ffc1c | преди 10 години | ||
db | 1b38d206cf | преди 10 години | ||
features | 6d824d5e47 | преди 10 години | ||
lib | 21d338e40d | преди 10 години | ||
public | 6265b3ce33 | преди 10 години | ||
script | dbf9621e94 | преди 10 години | ||
spec | 82f1b72319 | преди 10 години | ||
test | 6f19f6dee0 | преди 10 години | ||
vendor | def60a0d18 | преди 10 години | ||
.fontcustom-manifest.json | 6265b3ce33 | преди 10 години | ||
.gitignore | 6265b3ce33 | преди 10 години | ||
Gemfile | bb8ce26e3a | преди 10 години | ||
Gemfile.lock | bb8ce26e3a | преди 10 години | ||
Procfile | d1fe9cab7f | преди 10 години | ||
Rakefile | c579b5d55b | преди 10 години | ||
config.ru | def60a0d18 | преди 10 години | ||
fontcustom.yml | 6265b3ce33 | преди 10 години | ||
readme.md | 962c92d65d | преди 10 години |
Second prototype source code of the avalanche network web app.
https://github.com/jamesperet/rails_website_template.git
config/database.yml
rake db:migrate
rake bootstrap:all
to configure the website and create a admin userconfig/application.yml
with all env variablesapp/assets/javascript/google_analytics.js.coffe
rails server -p 3000
admin@website.com
with the password 12345678
heroku create new-app-name
figaro heroku:set -e production
to copy env variables from config/application.yml
and set them in herokuheroku addons:add heroku-postgresql
to create and configure a postgres database in heroku serverheroku addons:add redistogo
git push heroku master
to deploy the repoheroku run rake db:migrate
heroku run rake bootstrap:all
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
AWS_S3_BUCKET:
AWS_S3_BUCKET_REGION:
HEROKU_APP_URL:
MANDRILL_USERNAME:
MANDRILL_KEY:
DOMAIN_NAME:
SERVER_EMAIL:
DEVISE_SECRET_KEY:
SECRET_KEY_BASE:
MAILCHIMP_KEY:
MAILCHIMP_LIST_ID:
REDISTOGO_URL:
agent_step
rails g scaffold mission mission_agents:references title:string objective:string briefing:text owner:references status:integer launched:boolean
language:string cover_img:string
rails g model mission_agent mission:references agent_steps:references mission_candidates:references objective:string briefing:text role:string
description:text user:references agent_number:integer debriefing:text
rails g model agent_step mission_agent:references step:integer title:string description:text completed:bool completed_date:datetime
rails g model step_validation agent_step:reference step_verifications:references mode:string description:string
rails g model step_verification step_validation:references validated:boolean validated_by:references content:string
rails g model mission_candidate user:reference mission_agent:reference status:integer
rails g model agent_reward mission_agent:reference category:string title:string description:text img:string
mission controller agent controller mission_list_controller settings_controller
mission_list_index agent_dashboard mission_index mission_show mission_edit/create
Emails: