Food Hacking Base:Running Discourse at Uberspace: Difference between revisions

From Food Hacking Base
Jump to navigation Jump to search
mNo edit summary
m (spacing)
Line 3: Line 3:
* [http://samsaffron.com/archive/2013/11/07/discourse-in-a-docker-container Discourse in a Docker container]
* [http://samsaffron.com/archive/2013/11/07/discourse-in-a-docker-container Discourse in a Docker container]


    bundle install --without test --deployment
bundle install --without test --deployment
    RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
    RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
    RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake posts:rebake
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake posts:rebake


Reset database and start over:
Reset database and start over:


    ''(stop sidekiq)''
''(stop sidekiq)''
    RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec thin -C config/thin.yml stop
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec thin -C config/thin.yml stop
    dropdb discourse
dropdb discourse
    redis
redis
      ''redis /home/fhblab/.redis/sock>'' flushall
  ''redis /home/fhblab/.redis/sock>'' flushall
    createdb -E UTF-8 -O discourse discourse
createdb -E UTF-8 -O discourse discourse
    psql discourse
psql discourse
      ''discourse=#'' create extension hstore;
  ''discourse=#'' create extension hstore;
      ''discourse=#'' create extension pg_trgm;
  ''discourse=#'' create extension pg_trgm;
    RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
    RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec thin -C config/thin.yml start
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec thin -C config/thin.yml start
    RAILS_ENV=production bundle exec sidekiq -L log/sidekiq.log
RAILS_ENV=production bundle exec sidekiq -L log/sidekiq.log

Revision as of 19:23, 10 March 2014

This is currently just a scratchpad for notes, links and shell commands for running Discourse at Uberspace...

bundle install --without test --deployment
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake posts:rebake

Reset database and start over:

(stop sidekiq)
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec thin -C config/thin.yml stop
dropdb discourse
redis
  redis /home/fhblab/.redis/sock> flushall
createdb -E UTF-8 -O discourse discourse
psql discourse
  discourse=# create extension hstore;
  discourse=# create extension pg_trgm;
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec thin -C config/thin.yml start
RAILS_ENV=production bundle exec sidekiq -L log/sidekiq.log