You can run nbgallery with the built-in rails server
command or with Rack servers like Puma or Passenger.
- Make sure MySQL/MariaDB is up and running.
bundle exec rake db:migrate
must be run whenever there are database schema changes, but it's safe to run it every time.- If running in production mode:
bundle exec rake assets:precompile
- If running the bundled Solr server:
bundle exec rake sunspot:solr:start
(in development mode, this happens automatically) - Start the app: e.g.
rails server
or via a Rack server like Puma, Passenger, etc. - If you need to run scheduled jobs outside the app (e.g. if you're using Passenger), start cronic in daemon mode:
bundle exec script/cronic -d -l <logdir>/cronic.log -P <piddir>/cronic.pid
- If running scheduled jobs outside the app, stop the cronic daemon:
bundle exec script/cronic -k -P <piddir>/cronic.pid
- Stop the rails app server
- If running the bundled Solr server:
bundle exec rake sunspot:solr:stop
(in development mode, this happens automatically)