title | description | tags | ||||
---|---|---|---|---|---|---|
Strapi |
A self-hosted version of Strapi using a Postgres database |
|
This example deploys self-hosted version of Strapi. Internally it uses a PostgreSQL database to store the data.
- Strapi
- Postgres
- Instal Nodejs with a minimum version of 16
- Install Postgres server locally (v14) and create a database named
postgres
with a usernamestrapi
and passwordpassword
and start it on port 5432
CREATE USER strapi WITH ENCRYPTED PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE postgres TO strapi;
- Clone the repository
- yarn to install all the dependencies
- yarn develop to build and start Strapi for development
- After your app is deployed, visit the
/admin
endpoint to create your admin user. - Railway's filesystem is ephemeral which is why any changes to the filesystem are not persisted between deploys. This is why, this example uses Cloudinary for storage.
- When ever you push the code, ensure
yarn cs export --yes
command was used before writing your commit message.