Skip to content

Commit

Permalink
Adding reboot.sh for quicker development
Browse files Browse the repository at this point in the history
  • Loading branch information
aladagemre committed Jan 25, 2016
1 parent dea06b8 commit e982b97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions reboot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docker stop statique-dropbox
docker rm statique-dropbox
docker build -t fikrimuhal/statique-dropbox -f Dockerfile.top .
docker run -d --name statique-dropbox -e WEBHOOK_PATH="/abcd" -p 3000:3000 fikrimuhal/statique-dropbox
sleep 1
docker logs statique-dropbox
2 changes: 1 addition & 1 deletion src/statique/FullStaticFileHandler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FullStaticFileHandler < HTTP::StaticFileHandler
end

def get_static_path(request_path)
puts request_path
#request_path = request_path.sub("%20", "-").sub(" ", "-")
if request_path[-1] == '/' # || request_path.size > 1 && request_path[-1] == "/"
static_path = @publicdir + request_path + "index.html"
elsif !request_path.ends_with?(".html")
Expand Down

0 comments on commit e982b97

Please sign in to comment.