Food Hacking Base:Running Discourse at Uberspace: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(more links) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This is currently just a scratchpad for notes, links and shell commands for running [http://www.discourse.org Discourse] at [https://uberspace.de Uberspace]... | This is currently just a scratchpad for notes, links and shell commands for running [http://www.discourse.org Discourse] at [https://uberspace.de Uberspace]... | ||
* [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 (would be nice to have)] | ||
* [https://uberspace.de/dokuwiki/development:ruby Uberspace: Ruby] | |||
* [https://uberspace.de/dokuwiki/cool:rails Uberspace: Rails] | |||
* [https://uberspace.de/dokuwiki/database:postgresql Uberspace: PostgreSQL] | |||
* [https://uberspace.de/dokuwiki/database:redis Uberspace: Redis] | |||
* [http://dennisreimann.de/blog/rails-hosting-auf-uberspace/ Rails-Hosting auf Uberspace] | |||
* [http://httpd.apache.org/docs/trunk/rewrite/rewritemap.html#rnd Apache RewriteMap (for load balancing)] | |||
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: | 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 |
Latest revision as of 00:28, 11 March 2014
This is currently just a scratchpad for notes, links and shell commands for running Discourse at Uberspace...
- Discourse in a Docker container (would be nice to have)
- Uberspace: Ruby
- Uberspace: Rails
- Uberspace: PostgreSQL
- Uberspace: Redis
- Rails-Hosting auf Uberspace
- Apache RewriteMap (for load balancing)
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