Skip to content

Instantly share code, notes, and snippets.

@amit08255
Last active January 10, 2025 19:44
Show Gist options
  • Save amit08255/39e32ce6a42d2de2940ff40de09d3c6f to your computer and use it in GitHub Desktop.
Save amit08255/39e32ce6a42d2de2940ff40de09d3c6f to your computer and use it in GitHub Desktop.
Self-hosted Plasmic

Pre-requisites:

Setup Plasmic Locally

  1. Clone plasmic:

    git clone https://github.com/plasmicapp/plasmic.git
    cd plasmic
  2. Install dependencies:

    yarn
  3. Setup plasmic app and database:

    yarn setup
    export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH
    no_sudo=1 yarn db:setup
    yarn setup-all
  4. Starting plasmic app:

    yarn dev

    Now open http://localhost:3003/ in browser. Signup to the account using your email. You won't receive verification email link. You can see verification email link in console.

Note:

psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "postgres" Open the pg_hba.conf file. It's typically located in /etc/postgresql/{version}/main/ on Linux or /var/lib/pgsql/{version}/data/ on some other systems. The file contains the authentication rules for PostgreSQL. For example: sudo nano /etc/postgresql/15/main/pg_hba.conf Find the line that mentions local connections for the postgres user (or any user). It might look like this: local all postgres peer Change the peer method to trust Reload PostgreSQL Configuration After making changes to pg_hba.conf, reload PostgreSQL for the changes to take effect: sudo systemctl reload postgresql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment