Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Permission issue while running binary on server #144

Open
shivamsouravjha opened this issue Apr 15, 2024 · 2 comments
Open

Permission issue while running binary on server #144

shivamsouravjha opened this issue Apr 15, 2024 · 2 comments

Comments

@shivamsouravjha
Copy link

  • Replaced var build = config.BUILD_SERVER to BUILD_SERVER
  • On my main.go file level created a docker-compose fiel with contents
version: '3.8'

services:
  slashbase-db:
    image: postgres
    container_name: slashbase-db
    restart: always
    ports:
      - '5432:5432'
    volumes:
      - ./data/postgres/data:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: petclinic
      POSTGRES_USER: petclinic
      POSTGRES_PASSWORD: petclinic
    healthcheck:
      test: pg_isready -U petclinic -d petclinic
      interval: 5s
      timeout: 5s
      retries: 3
  • In development.server.env passed the values
APP_DB_HOST=localhost
APP_DB_PORT=5432
APP_DB_USER=petclinic
APP_DB_PASS=petclinic
APP_DB_NAME=petclinic
  • always I get the permission with data.
image * I understand a solution would be to give chmod , but to no avail, similar issue happens. * When worked with docker image it works fine. * Any viable solution?
@shivamsouravjha
Copy link
Author

  • A work around for this was giving sudo access to wails, meaning passing privileges to the command via env.
  • Still I don't believe this is a great approach of running the same.

@paraswaykole
Copy link
Owner

@shivamsouravjha Are you running binary on server for production use? if yes, you could use the Makefile build-server to build the binary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants