How to I can install old version discourse?


For my needs I need version 2.0.4 (20180719103905)
How I can make fresh install Discourse v2.0.4?

If I install the current version, then I specify an app.yml version: 2.0.4, and run launcher rebuild app, then the process fails at the moment of migration.

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 14714 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
1 Like

Why do you need that version?

No good can come from it, but you can stop discourse, delete the database directory, and then rebuild.

cd /var/discourse
./launcher stop app
rm -rf standalone/postgres_data/
./launcher rebuild app

Note: This will delete all of your data, but you say that you want a “fresh install”, so I guess that’s what you want. (This assumes that you’ve modified app.yml to install the version you want, which you seem to know how to do.)


Are you trying to downgrade? That’s not possible.