Skip to content

Commit

Permalink
feat: update to work with Crystal 0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfaust committed Aug 16, 2018
1 parent 66706cd commit 902116b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM crystallang/crystal:0.25.0
FROM crystallang/crystal:0.26.0

# Add the app and build it
WORKDIR /app/
Expand Down
6 changes: 3 additions & 3 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shards:

core:
github: vladfaust/core
version: 0.4.0
version: 0.4.1

db:
github: crystal-lang/crystal-db
Expand All @@ -22,15 +22,15 @@ shards:

migrate:
github: vladfaust/migrate.cr
version: 0.2.0
version: 0.3.0

pg:
github: will/crystal-pg
version: 0.15.0

prism:
github: vladfaust/prism
version: 0.2.1
version: 0.3.0

radix:
github: luislavena/radix
Expand Down
10 changes: 5 additions & 5 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: crystalworld
version: 0.1.0
version: 0.2.0

authors:
- Vlad Faust <[email protected]>
Expand All @@ -10,7 +10,7 @@ targets:
cake:
main: src/bin/cake.cr

crystal: 0.25.0
crystal: 0.26.0

license: MIT

Expand All @@ -25,13 +25,13 @@ dependencies:
version: ~> 0.15.0
migrate:
github: vladfaust/migrate.cr
version: ~> 0.2.0
version: ~> 0.3.0
core:
github: vladfaust/core
version: ~> 0.4.0
version: ~> 0.4.1
prism:
github: vladfaust/prism
version: ~> 0.2.0
version: ~> 0.3.0
jwt:
github: crystal-community/jwt
version: ~> 0.3.0
Expand Down
4 changes: 2 additions & 2 deletions src/bin/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ handlers = [log_handler, cors, auth_handler, router] # Let's just put them all i
host = ENV["HOST"]? || "0.0.0.0" # Get HOST environment variable or use "0.0.0.0" by default
port = ENV["PORT"]?.try &.to_i || 5000 # ditto

# *true* argument enables multi-process usage of a same port
server = Prism::Server.new(handlers, host, port, true, logger)
server = Prism::Server.new(handlers, logger)
server.bind_tcp(host, port, reuse_port: true) # `reuse_port` enables multi-process usage of the same port

logger.info("Welcome to the Crystal World! ✨ https://github.com/vladfaust/crystalworld")
server.listen

0 comments on commit 902116b

Please sign in to comment.