Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with make init #68

Open
matuskm opened this issue Apr 11, 2024 · 6 comments
Open

Problem with make init #68

matuskm opened this issue Apr 11, 2024 · 6 comments

Comments

@matuskm
Copy link

matuskm commented Apr 11, 2024

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
Copy link
Contributor

jelen07 commented Apr 11, 2024

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
Copy link
Author

matuskm commented Apr 11, 2024

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
Copy link
Contributor

jelen07 commented Apr 11, 2024

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
Copy link
Author

matuskm commented Apr 11, 2024

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
Copy link
Contributor

jelen07 commented Oct 2, 2024

Duplicity with #66

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

No branches or pull requests

2 participants