Comments (11)
Hi there! Take a look at line 14 in databases.swift
- looks like there is an environment variable you're not setting :)
from template.
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.
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.
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.
No problem! You're also going to need a MySQL server locally.
from template.
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.
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.
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.
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.
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.
Awesome! Glad I could help :)
from template.
Related Issues (3)
- How to use the repository pattern HOT 3
- Post Issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from template.