Configuring Plume

If you are using PostgreSQL, you have to create a database for Plume.

service postgresql start
su - postgres
createuser -d -P plume
createdb -O plume plume

Before starting Plume, you’ll need to create a configuration file, called .env. Here is a sample of what you should put inside.

# The address of the database
# (replace USER, PASSWORD, PORT and DATABASE_NAME with your values)
# If you are using SQlite, use the path of the database file (`plume.db` for instance)

# For PostgreSQL: migrations/postgres
# For SQlite: migrations/sqlite

# The domain on which your instance will be available

# Secret key used for private cookies and CSRF protection
# You can generate one with `openssl rand -base64 32`

# Mail settings

For more information about what you can put in your .env, see the documentation about environment variables.

Now we need to run migrations. Migrations are scripts used to update the database. They are run by diesel that we previously installed. To run the migrations, you can do:

diesel migration run

Migrations should be run after each update. When in doubt, run them.

After that, you’ll need to setup your instance, and the admin’s account.

plm instance new
plm users new --admin

You will also need to initialise search index

plm search init

For more information about these commands, and the arguments you can give them, check out their documentation.

Now that Plume is configured, if you are in a production environment you probably want to configure your init system to make it easier to manage.

Configure init system