Manual installation (not recommended)
Last updated
Last updated
WARNING: This method is not recommended and not officially supported, since you should use the instead. Use this method only if the installer isn't an option and you have experience configuring PostgreSQL, Puma or Passenger, NGINX, and SSL (with letsencrypt, for instance).
This guide assumes you've already on your system. Make sure to install RVM to be able to install the Ruby version required by the project, which is defined in the .ruby-version file. Also, ensure you have installed FNM to install the Node.js version defined in the .node-version file.
The created directory structure herein is to be used with .
First, create the main folder, clone the repo to a repo directory, and create the needed folders:
Extract from the repo the first release to the respective directory, and create the symbolic link of the current release. Be sure to replace <latest_consuldemocracy_stable_version>
with the number of the latest stable version of Consul Democracy, such as 2.1.1 or 2.2.0. To find the most recent version, visit the releases section in the
Install the dependencies for Consul Democracy:
Generate the database.yml
and secrets.yml
files:
We now need to generate a secret key:
Copy that generated key, and edit the shared/config/secrets.yml
file; under the section production
, change the following data:
If you aren't using a SSL certificate, replace the line saying force_ssl: true
with force_ssl: false
.
Create a database, load the seeds and compile the assets:
And, finally, start the Rails server:
Edit the shared/config/database.yml
file, filling in username
and password
with the data generated during the .
Congratulations! Your server is now running in the production environment .