68publishers / consent-management-platform

🛡 Easily manage user consents and the cookie widget
Other
28 stars 6 forks source link

Problem with make init #68

Open matuskm opened 5 months ago

matuskm commented 5 months ago

Hi,

I have problem with run make init

make init
make stop
make[1]: Entering directory '/var/home/***/docker-projects/cmp'
docker compose --profile web --profile worker stop
WARN[0000] /home/***/docker-projects/cmp/docker-compose.yml: `version` is obsolete
make[1]: Leaving directory '/var/home/***/docker-projects/cmp'
make db-clear
make[1]: Entering directory '/var/home/***/docker-projects/cmp'
rm -rf var/postgres-data/*
rm: cannot remove 'var/postgres-data/pgdata': Permission denied
make[1]: *** [Makefile:35: db-clear] Error 1
make[1]: Leaving directory '/var/home/***/docker-projects/cmp'
make: *** [Makefile:95: init] Error 2
docker-projects/cmp/var/postgres-data$ ll
total 8.5K
drwx------ 19 70 root 25 Apr 11 08:28 pgdata

I don't have root permissions on the server.

jelen07 commented 5 months ago

Hi, on what server? The Makefile in this project is something you shouldn't use for production. It is primarily used for installation for development.

matuskm commented 5 months ago

Sorry, but you have in Readme this image I'm attempting to deploy this application on a different server. The server is running Ubuntu and Docker. Could you please assist me with this?

jelen07 commented 5 months ago

Yes, but this is not for beginners. An experienced developer should distinguish when to use it and when not. We don't separate the readme for beginners and experienced developers, we only have one version 😉

However, the Makefile contains a set of commands needed for installation. Examining them can help you know what is and isn't needed to install on a production environment so you can set it up correctly. Ideally using Kubernetes, docker swarm or other orchestration tools.

matuskm commented 5 months ago

I just want to try the application, but I'm having a problem, for example with this: docker exec -it cmp-app composer install --no-interaction --no-ansi --prefer-dist --no-progress --optimize-autoloader

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 167 installs, 0 updates, 0 removals

In Filesystem.php line 254:

  /var/www/html/vendor does not exist and could not be created.

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]
jelen07 commented 5 months ago

That's a permissions issue. Did you try searching first?

jelen07 commented 22 hours ago

Duplicity with https://github.com/68publishers/consent-management-platform/issues/66