Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Adding index.hh support
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Carlson committed Apr 8, 2014
1 parent e0e38b2 commit 32aad53
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions bin/release
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
#!/bin/bash

cat << EOF
if [ -f "$1/composer.json" ] || [ -f "$1/index.php" ]; then
cat << EOF
---
addons:
config_vars:
default_process_types:
web: LD_LIBRARY_PATH=vendor/hhvm/ vendor/hhvm/hhvm -m server -p \$PORT -c vendor/hhvm/config.hdf
web: LD_LIBRARY_PATH=vendor/hhvm/ vendor/hhvm/hhvm -m server -p \$PORT -c vendor/hhvm/config-php.hdf
EOF
fi

if [ -f "$1/index.hh" ]; then
cat << EOF
---
addons:
config_vars:
default_process_types:
web: LD_LIBRARY_PATH=vendor/hhvm/ vendor/hhvm/hhvm -m server -p \$PORT -c vendor/hhvm/config-hack.hdf
EOF
fi
3 changes: 3 additions & 0 deletions conf/config-hack.hdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Server {
DefaultDocument = index.hh
}
File renamed without changes.

0 comments on commit 32aad53

Please sign in to comment.