Git Product home page Git Product logo

Comments (11)

jdmcd avatar jdmcd commented on June 18, 2024 1

Hi there! Take a look at line 14 in databases.swift - looks like there is an environment variable you're not setting :)

from template.

bubudrc avatar bubudrc commented on June 18, 2024

sorry about that... I saw the Constants struct, and just to confirm, do I need set the 3 properties on databases.swift? are there a fast way to test your template on a localhost env? 🤔

Thanks for your fast answer

from template.

jdmcd avatar jdmcd commented on June 18, 2024

No prob :) Yes, all three need to be set. Once you have a local database setup you'll be able to run everything locally 👍

from template.

bubudrc avatar bubudrc commented on June 18, 2024

hmmm... sorry @mcdappdev ... I'm too new using vapor. I'm installed redis from hombrew, but... that's it... I keep not understand what data need the app to run 😢

Thanks for your help

from template.

jdmcd avatar jdmcd commented on June 18, 2024

No problem! You're also going to need a MySQL server locally.

from template.

bubudrc avatar bubudrc commented on June 18, 2024

Hi @mcdappdev

So, I'm installed MySql 5.7 and Redis.
So, i'm changed the constants like this:

 static let databaseURL = "127.0.0.1"
    static let redisURL = "127.0.0.1:6379"

but, im still having this error on the console:

[Abort.500: Internal Server Error] [/Users/marceloperretta/Desktop/TranseoTestTemplate/Sources/App/Setup/databases.swift:14:88]

any advice ? thanks

PD: sorry for keep bother you :)

from template.

jdmcd avatar jdmcd commented on June 18, 2024

You shouldn't change the values inside of Constants.swift. You have to set those as environment variables which you can do via the Xcode scheme editor or through the command line via export.

from template.

bubudrc avatar bubudrc commented on June 18, 2024

yeah... thanks for that, I'm an step forward.

So, after to set the env variables and run the project I get:

[MySQLError.password: Password required for auth plugin.] ... Sources/MySQL/Connection/MySQLConnectionHandler.swift:132:33]...

Should I need run this project using Docker or can I run the project locally?

from template.

jdmcd avatar jdmcd commented on June 18, 2024

You can definitely run it locally. Looks like maybe you're not specifying a password in the env variable? It should look something like this:

mysql://username:password@localhost:3306/database

from template.

bubudrc avatar bubudrc commented on June 18, 2024

awesome... that works, the projects its running now. So, the only missing are the leaf, but that its not a problem.

you're the best :)

from template.

jdmcd avatar jdmcd commented on June 18, 2024

Awesome! Glad I could help :)

from template.

Related Issues (3)

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.