Scott Robbin edited this page Nov 5, 2018 · 2 revisions

Vapid can be deployed to any hosting service that supports Node.js. Here are a few things to consider:

Environment Variables

At a minimum, you'll need to set two environment variables:


The second of these, SECRET_KEY, is used to encrypt sessions, so please make it something unique and secure.


By default, Vapid uses SQLite to store content, but for self-hosting, you may want to use something else, like PostgreSQL.

First, you'll need to add the database adapter to your dependencies:

npm install pg

Then, you'll want to tell Vapid how to connect to your database. Open up your package.json file, and add/override the "database" option under "vapid":

  "vapid": {
    "database": {
      "dialect": "postgresql",
      "use_env_variable": "DATABASE_URL"

The "database" config accepts any format available to Sequelize.


Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.