Git Product home page Git Product logo

adonis-sail's People

Contributors

julien-r44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adonis-sail's Issues

Cannot find module '../src/services'

After installing this package, and running node ace configure adonis-sail, I get this errror thrown:

Cannot find module '../src/services'
Require stack:
- /home/travis/projects/<project>/node_modules/.pnpm/[email protected]/node_modules/adonis-sail/build/commands/InstallSail.js

Which makes sense - in /node_modules/adonis-sail/build/commands/InstallSail.js, there is a line that requires the file const services_1 = require("../src/services");, but this file is not included in the NPM package:

image
image

[feature] mailhog remove 'auth' from config/mail automatically via env variable during testing

Hi,
First of all thanks for this piece of tech.
I found myself in some trouble between the local development and our CI/CD pipeline.
Problem was that i couldn't really reliably remove or add a piece of code to run on the CI/CD.
So Tried to find a possible solution to remove the auth property from the smtp object with env variables.

After some searching and fiddling around i think i found a viable way, Maybe something you want to implement here in the docs or if possible in the install command itself.
It looks something like this:

smtp: {
      driver: 'smtp',
      host: Env.get('SMTP_HOST'),
      port: Env.get('SMTP_PORT'),
      ...(!Env.get('MAILER_TESTING', true) && {
        auth: {
          user: Env.get('SMTP_USERNAME'),
          pass: Env.get('SMTP_PASSWORD'),
          type: 'login',
        },
      }),
    },

or via the NODE_ENV variable?

smtp: {
      driver: 'smtp',
      host: Env.get('SMTP_HOST'),
      port: Env.get('SMTP_PORT'),
      ...(Env.get('NODE_ENV') !== 'development' && {
        auth: {
          user: Env.get('SMTP_USERNAME'),
          pass: Env.get('SMTP_PASSWORD'),
          type: 'login',
        },
      }),
    },

POC can be found here: https://jsfiddle.net/0k16jos7/

aide docker

Bonjour, je suis vraiment désoler d'écrire ici , je ne sait pas du tous comment vous contactez, sans vous déranger.

Donc je vous contact car j'aime adonis mais là j'ai les yeux qui pleure ^^
j'essaie tant bien que mal de dockerizer mon projet adonis, je suis la doc partie dockerization
tous ce passe bien mon docker compose s'execute etc ... mais quand j'ouvre le navigateur
là aussi la partie serveur du site fonctionne mais le webpack encore fait défaut et n'arrive pas à rendre les fichiers.
(j'ai bien suivis la partie de la doc qui modifie le docker-compose pour webpack encore) donc de ce coté là
je suis sur que tout est ok.

j'ai tester beaucoup de chose sans réponse positive.
j'ai trouver un contournement et mais cela me fait perdre mes cheveux
=>
dans public/entrypoints.json je modifie à la main le host, je passe 0.0.0.0 à localhost et sa fonctionne
bien sur si j'arrête le contenu faut que je recommence, donc c'est clairement pas une bonne solution (même de contournement ^^)
j'ai donc par la suite essayer de modifier mon host au lieu de 0.0.0.0 => localhost cela ne règle pas le soucis
je dois le faire manuellement pour que sa fonctionne (c'est là que je pleure), je vous demande de l'aide car j'aimerais
dockerizer pour la prod. (donc je test)

si vous avez une solution je suis preneur, je vous dérange, passer mon message à la poubelle je ne veux vraiment pas vous faire perdre votre temps, encore une fois désoler d'écrire ici, j'ai demandé sur discord mais je n'ai pas réussis à trouvé une solution
merci de m'avoir lu à bientôt j'espère
Capture d’écran 2022-06-07 145417
Capture d’écran 2022-06-07 145632

ER_NOT_SUPPORTED_AUTH_MODE: Mysql 8.0

When MySQL 8 is used this error is encountered:

ER_NOT_SUPPORTED_AUTH_MODE: 
  Client does not support authentication protocol requested by server; consider upgrading MySQL client 

Workaround

Replace mysql image in docker-compose.yml :

  mysql:
    image: 'mysql/mysql-server:8.0'
    container_name: mysql

with this :

  mysql:
    image: 'mysql/mysql-server:5.7'
    container_name: mysql

See : https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server

I got this error after running docker compose up -d

I got this error after running docker-compose up -d

docker-compose up -d
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 670, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1255, in request
File "http/client.py", line 1301, in _send_request
File "http/client.py", line 1250, in endheaders
File "http/client.py", line 1010, in _send_output
File "http/client.py", line 950, in send
File "docker/transport/unixconn.py", line 43, in connect
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests/adapters.py", line 439, in send
File "urllib3/connectionpool.py", line 726, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 670, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1255, in request
File "http/client.py", line 1301, in _send_request
File "http/client.py", line 1250, in endheaders
File "http/client.py", line 1010, in _send_output
File "http/client.py", line 950, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker/api/client.py", line 214, in _retrieve_server_version
File "docker/api/daemon.py", line 181, in version
File "docker/utils/decorators.py", line 46, in inner
File "docker/api/client.py", line 237, in _get
File "requests/sessions.py", line 543, in get
File "requests/sessions.py", line 530, in request
File "requests/sessions.py", line 643, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 200, in perform_command
File "compose/cli/command.py", line 60, in project_from_options
File "compose/cli/command.py", line 152, in get_project
File "compose/cli/docker_client.py", line 41, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in init
File "docker/api/client.py", line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
[4825] Failed to execute script docker-compose

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.