Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update Makefile

  • Loading branch information...
commit 0b81f5b39b5967fac145269f23111b73ae7f2eaf 1 parent daa8b5c
@msoap authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 Makefile
View
14 Makefile
@@ -1,3 +1,4 @@
+# create Mojolicious::Lite one server script from src/* sources
build:
cat ./src/mojolicious-lite-radio-box-server.pl | ./helpers/build_result_script.pl > ./mojolicious-radio-box.pl
chmod a+x mojolicious-radio-box.pl
@@ -6,15 +7,24 @@ test-syntax:
perl -c ./mojolicious-radio-box.pl
run:
+ ./mojolicious-radio-box.pl
+
+# run for develop (auto update new code)
+run-dev:
morbo --listen 'http://*:8080' ./mojolicious-radio-box.pl
+# run as daemon
run-prod:
hypnotoad ./mojolicious-radio-box.pl
+# stop daemon
stop-prod:
hypnotoad --stop ./mojolicious-radio-box.pl
+# deploy to Raspberry Pi
+# add before: git remote add raspberrypi ssh://raspberrypi.local/home/user/path_to.../mojolicious-radio-box
+# and change config on RPi repo: git config receive.denyCurrentBranch ignore
+# usage:
+# make deploy; ssh raspberrypi.local 'cd ~/path_to.../mojolicious-radio-box && git reset --hard'
deploy:
- # add before: git remote add raspberrypi ssh://raspberrypi.local/home/user/path_to.../mojolicious-radio-box
- # and change config on RPi repo: git config receive.denyCurrentBranch ignore
git push raspberrypi
Please sign in to comment.
Something went wrong with that request. Please try again.