### Checkout and Install Dependencies (Git) Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Use this command to checkout a specific version and install its dependencies. ```bash git fetch origin git checkout v0.0.3.4 bundle ``` -------------------------------- ### Checkout Master Branch and Install Dependencies (Git) Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Use this command to switch back to the master branch and install its dependencies. ```bash git checkout master bundle ``` -------------------------------- ### Start Resque Web Interface Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Starts the Resque web interface. The port can be adjusted using the -p flag. ```bash bundle exec resque-web ``` -------------------------------- ### Start Resque Worker Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Starts a Resque worker for the production environment, processing all queues. ```bash RAILS_ENV=production QUEUE=* bundle exec rake resque:work ``` -------------------------------- ### Start Sidekiq Worker Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Starts a Sidekiq worker. This replaces the Resque worker when using Sidekiq. ```bash bundle exec sidekiq ``` -------------------------------- ### Install Ruby 2.0 with RVM Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Instructions for installing Ruby 2.0.0 using RVM and updating the Diaspora project. Ensure you are in the correct directory before running commands. ```bash rvm get stable rvm install 2.0.0 cd ~/diaspora git pull cd - && cd .. ``` -------------------------------- ### Install Gems with Database Support (Bundler) Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md When updating to version 0.6.0.0, the DB environment variable is removed. Use these commands to explicitly install gems for your desired database. For production, consider adding the `--deployment` flag. ```sh gem install bundler bundle install --with mysql # For MySQL and MariaDB ``` ```sh bundle install --with postgresql # For PostgreSQL ``` -------------------------------- ### Run Account Deletions Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Execute this command after upgrading to ensure account deletions are properly processed. It is intended for production environments. ```bash RAILS_ENV=production bundle exec rake accounts:run_deletions ``` -------------------------------- ### Migrate Legacy Sidekiq Queues Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Run this rake task to move jobs from old Sidekiq queues to the default queue. Ensure queues are empty before shutting down the server for updates. ```bash bin/rake migrations:legacy_queues ``` -------------------------------- ### Email Users with Rake Task Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Use the `podmin:admin_mail` Rake task to send emails to users. Specify user selection, message file path, and subject. ```shell RAILS_ENV=production bundle exec rake podmin:admin_mail['active_monthly','./message.html','Important message from pod'] ``` -------------------------------- ### Configure Heroku for Sidekiq Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Removes the Resque worker configuration and enables the Sidekiq worker on Heroku. ```bash heroku config:remove SERVER_EMBED_RESQUE_WORKER heroku config:set SERVER_EMBED_SIDEKIQ_WORKER=true ``` -------------------------------- ### Replace .rvmrc with .ruby-version and .ruby-gemset Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md This change updates the project's Ruby environment management files. It replaces the older .rvmrc with the more standard .ruby-version and .ruby-gemset files. ```shell Replace .rvmrc by .ruby-version and .ruby-gemset ``` -------------------------------- ### Stop Resque Web Interface Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Stops the Resque web interface. ```bash bundle exec resque-web -k ``` -------------------------------- ### Update Rails Secret Token Configuration Source: https://github.com/diaspora/diaspora/blob/develop/Changelog.md Replace the old `secret_token` setting with `secret_key_base` in `config/initializers/secret_token.rb` for Rails 4 compatibility. ```ruby # Old Rails.application.config.secret_token = '***********...' # New Diaspora::Application.config.secret_key_base = '*************...' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.