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

feat: comandos para fazer build local do projeto #193

Merged
merged 10 commits into from
May 14, 2024

Conversation

tsantos8080
Copy link
Collaborator

@tsantos8080 tsantos8080 commented May 13, 2024

Adiciona Makefile e arquivos do Docker para fazer build do projeto no ambiente local.

O usuário e a senha do Wordpress é melhorenvio.

Comandos:

  • make init: Faz o build do projeto e ativa os containers
  • make up: Ativa os containers
  • make down: Desativa os containers
  • make attach: Acessa o terminal do container do Wordpress
  • make wc-setup: Configura os métodos de envio e de pagamento do WooCommerce para utilizar o plugin do Melhor Envio
  • make wc-create-products: Cria produtos no WooCommerce

Além disso, é possível definir algumas configurações através de variáveis de ambiente (/docker/.env). Uma forma de fazer isso é criar um arquivo /docker/.env com base no /docker/.env.example, e definir dentro deste as seguintes configurações:

  • WP_PORT: A porta para acessar o container do Wordpress
  • DB_PORT: A porta para acessar o container do banco de dados

⚠️ Os arquivos adicionados foram listados no .distignore, garantindo que estes NÃO irão ser adicionados no build da release do plugin.

https://melhorenvio.atlassian.net/browse/HOP-2555

@tsantos8080 tsantos8080 requested a review from JoaoPedro0000 May 13, 2024 17:48
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from f715a3b to df30d25 Compare May 13, 2024 17:54
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from df30d25 to da8f5e9 Compare May 13, 2024 17:57
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from 5f27194 to da8f5e9 Compare May 13, 2024 19:12
@tsantos8080 tsantos8080 marked this pull request as draft May 13, 2024 19:39
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from da8f5e9 to 40c0d76 Compare May 13, 2024 20:11
@tsantos8080 tsantos8080 marked this pull request as ready for review May 13, 2024 20:12
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from 40c0d76 to 2215e3e Compare May 13, 2024 20:15
@tsantos8080 tsantos8080 marked this pull request as draft May 14, 2024 14:06
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from ea66e84 to f139f3a Compare May 14, 2024 14:53
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch 2 times, most recently from a6e1468 to 14ec752 Compare May 14, 2024 15:02
@tsantos8080 tsantos8080 marked this pull request as ready for review May 14, 2024 15:07
@tsantos8080 tsantos8080 marked this pull request as draft May 14, 2024 15:17
@tsantos8080 tsantos8080 force-pushed the feature/commands-to-build-the-project branch from 7de8071 to dc0f9d6 Compare May 14, 2024 16:23
Copy link

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tsantos8080 tsantos8080 marked this pull request as ready for review May 14, 2024 18:11
@tsantos8080 tsantos8080 merged commit 1d18220 into main May 14, 2024
1 check passed
@tsantos8080 tsantos8080 deleted the feature/commands-to-build-the-project branch May 14, 2024 18:38
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.

2 participants