Hi. Sorry for asking this question here but I didnāt find the correct place to ask the question. Have any of you tried out Perfect server and what do you think about it? Am trying to Start Swift server side development but I really need to choose the best tool for this. Any input will be highly appreciated.
@tof Not yet but I agree that would be awesome to make!
@gutenberg Havenāt tried out Perfect myself yet. But in case it helps, hereās a quote from @sebastian on the Vapor Slack about his 2c on the various frameworks:
Perfect - Perfect is older and it was first but it was pre-Swift 3 so it does not count I guess. IBM Kitura was started with a big hype and generally puts a lot of attention of server-side Swift which is awesome. But: and yes, there is a big BUT: Vapor is from all 3 the best choice because it is developing faster, more open and with a much stronger community than Perfect or IBM. Additionally, the internals also look much more healthy and powerful and Logan and Tanner are great as project owners.
I worked through the Vapor screencasts, and my app runs fine locally, using a local postgresql database.
However, when I deployed it to heroku, the logs on Heroku are showing this:
2017-01-11T17:36:13.336738+00:00 heroku[web.1]: Process exited with status 132
2017-01-11T17:36:16.486617+00:00 heroku[web.1]: Starting process with command App --env=production --workdir=./ --config:servers.default.port=5614 ā-config:postgresql.url=postgres://yxbtoxwlxquvyw:4810659c75b2608b64754ee6de7015ef07bd8768f34aad89a7ec687aeedb7326@ec2-23-21-46-94.compute-1.amazonaws.com:5432/d51nbt8v8s68c4
2017-01-11T17:36:18.996590+00:00 app[web.1]: fatal error: Error raised at top level: VaporPostgreSQL.Provider.Error.noPostgreSQLConfig: file /home/buildnode/disk2/workspace/oss-swift-3.0-package-linux-ubuntu-14_04/swift/stdlib/public/core/ErrorType.swift, line 184
To me, this means Iāve screwed up the configuration for the app on Heroku somewhere. Anyone have any ideas what Iāve done wrong?
Iām interested in trying this out as I want to start doing server side development in swift. However, I am having an issue even building the project. I get an error when the PostgreSQL target builds as it canāt locate the CPostgreSQLMac module. Iām having trouble finding a framework for this module anywhere. Any advice? Thanks!
hi ray my local postgreqsql workes just fine but after depoloying to heroku i try to save some data i get this error back
{
ācodeā: 500,
āerrorā: true,
āmessageā: āThe operation could not be completedā,
āmetadataā: null
}
any clue why is that?
Thanks for take the time to make this tutorial. I just wanted to comment for those watching that I had an issue with trying to run āvapor heroku initā :- it was giving me an error āUnable to connect to Heroku API, please check internet connectivity and try again.ā
After digging for a couple of days, I finally discovered that the default path in the terminal was the problem and that it didnāt point to the version of the heroku command I had intended. This was because a few years back I did a tutorial on Ruby On Rails that changed the path and inserted a different version at the beginning of the path. So finding where the .bash_profile had been changed and reverting that fixed the issue.
I am having a similar issue. Works fine locally, then when deployed it fails.
2017-02-07T22:46:47.133573+00:00 heroku[web.1]: Starting process with command App --env=production --workdir=./ --config:servers.default.port=22759 --config:portgresql.url=postgres://fpqiljwmplazex:8a2b730cbfb62f65678aac5054ff263d420ae521e283cc572cae3ab762b45151@ec2-23-21-76-49.compute-1.amazonaws.com:5432/denrli797vo73s
2017-02-07T22:46:49.241878+00:00 app[web.1]: Production mode enabled, disabling informational logs.
2017-02-07T22:46:49.253625+00:00 app[web.1]: Could not initialize provider Provider: noPostgreSQLConfig
2017-02-07T22:46:49.255083+00:00 app[web.1]: No command supplied, defaulting to serveā¦
2017-02-07T22:46:49.255254+00:00 app[web.1]: Can not run preparations, droplet has no database
2017-02-07T22:46:49.347605+00:00 heroku[web.1]: State changed from starting to crashed
2017-02-07T22:46:49.337843+00:00 heroku[web.1]: Process exited with status 1
2017-02-07T22:47:16.809194+00:00 heroku[router]: at=error code=H10 desc=āApp crashedā method=GET path=ā/allā host=vast-cliffs-48348.herokuapp.com request_id=5e84716b-fcc8-4c1a-a1db-e7da56b58cb3 fwd=ā88.3.87.40ā dyno= connect= service= status=503 bytes=
Postgresql works fine locally. But after deploying it on heroku im getting error
Production mode enabled, disabling informational logs.
2017-02-20T05:48:24.663363+00:00 app[web.1]: fatal error: Error raised at top level: VaporPostgreSQL.Provider.Error.noPostgreSQLConfig: file /home/buildnode/disk2/workspace/oss-swift-3.0-package-linux-ubuntu-14_04/swift/stdlib/public/core/ErrorType.swift, line 184