Skip to content

Instantly share code, notes, and snippets.

@loganwright
Created February 13, 2016 04:59
Show Gist options
  • Save loganwright/e29d70d1378e1bef27e9 to your computer and use it in GitHub Desktop.
Save loganwright/e29d70d1378e1bef27e9 to your computer and use it in GitHub Desktop.
SwiftServer.md

1: sign up and setup heroku. Create Heroku app etc.

** EVERYTHING PAST HERE ASSUMES CD IN REPOSITORY **

2: Set build packs: heroku buildpacks:set https://github.com/kylef/heroku-buildpack-swift.git

3: Start Heroku: heroku ps:scale web=1

4: Procfile: web: <#NameOfPackage#> --port=$PORT GOTCHAS

  • I'm using port 8080 in Vapor, not sure if it matters
  • Procfile setup
  • Started heroku
  • Single "/" doesn't seem to work
@loganwright
Copy link
Author

Don't forget whole SPM stuff has to be setup.

@loganwright
Copy link
Author

Had to move the module map on sqlite 3 to the one installed by homebrew locally

Had to move sqlitedriver and the sqlite3 module map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment