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

add make comand #500

Merged
merged 1 commit into from Mar 23, 2023
Merged

Conversation

usernaimandrey
Copy link
Contributor

No description provided.

@usernaimandrey usernaimandrey merged commit 683ded5 into Hexlet:main Mar 23, 2023
1 check passed
docker-compose run --rm app npm install --force

compose-install-bundle:
docker-compose run --rm app bundle install --jobs $(shell nproc)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@usernaimandrey кажется появляется много однотиных команд.
Можно сделать одну команду тиа docker-compose-run и запускать её, передавая в переменную команду, которую нужно выполнить. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно все сервисные команды вынести в отделный Make file, как это сделанно на КБ make-compose-app, хотя можно и так, толко надо в голове команду и флаг держать ;)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно так и так.
У тебя внешняя команда останется такая же, будет типа

docker-compose-run:
    docker-compose run --rm app $(C)
    
compose-app-setup:
  make docker-compose-run C="make setup"

типа так.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да так прикольно

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

извиняюсь я там не туда тыкнул, нечайно ишю закрыл, но все поправил)

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

Successfully merging this pull request may close these issues.

None yet

2 participants