brstp / cal3

Calendar - built upon rails 3
2 stars 0 forks source link

Evenemangskalendern Allom

Make sure environment variables are setup

ALLOM_LIVE - must have a value to not request password. User is: smygtitt

ALLOM_DEMO - enable demo, read only mode

S3_SECRET

S3_KEY

WEBSOLR_URL

Development environment

GMAIL_SMTP_USER

GMAIL_SMTP_PASSWORD

bundle update rake precompile:assets rake import:municipalities
rake import:names

git add git commit

git push allom-prod branchname:master

heroku run rake db:migrate --app heroku run rake setup:heroku_collation --app heroku run rake sunspot:solr:reindex heroku run rake setup:first_admin # b.r.s

heroku run rake scrape:municipalities
heroku run rake scrape:update_facts

heroku run rake paperclip:refresh:thumbnails CLASS=Event heroku run rake paperclip:refresh:thumbnails CLASS=Organizer


heroku db:push # Kanske... ladda exempeldata från lokalt till Heroku (pull åt andra hållet)

Use heroku db:pull when you wish to export the contents of your Heroku app’s database. Some uses include backups, local debugging, or to move the app’s deployment location. Kom ihåg reindex av solr!

För att populera stage-databasen heroku pgbackups:restore DATABASE heroku pgbackups:url --app allom-prod2 --app allom-stage heroku run rake sunspot:solr:reindex --app allom-stage