Created
May 22, 2018 09:09
-
-
Save itsmikita/017854c833bfe7f1b6122ab196a36644 to your computer and use it in GitHub Desktop.
Local development with PHP and Proxygen on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Disable <?hh | |
hhvm.hack.lang.look_for_typechecker = false | |
; Enable all PHP7 features | |
hhvm.php7.all = true | |
; Disable caching for static files | |
hhvm.server.expires_default = 1 | |
; Make errors pointing to index.php | |
hhvm.server.error_document404 = index.php | |
hhvm.server.error_document500 = index.php | |
; HTTP port | |
hhvm.server.port = 8000 | |
; Project document root (must be absolute path) | |
; NOTE: This is UNIX/MacOS environment | |
hhvm.server.source_root = /Users/USER/git/PROJECT/public | |
; Use HTTPS | |
hhvm.server.enable_ssl = true | |
; How to generate self-signed SSL certificates: | |
; https://istmiki.cf/generate-self-signed-ssl-certificates-for-local-development/ | |
hhvm.server.ssl_certificate_dir = /Users/itsmikita/git/esafe/hhvm | |
hhvm.server.ssl_certificate_file = /Users/itsmikita/git/esafe/hhvm/localhost.crt | |
hhvm.server.ssl_certificate_key_file = /Users/itsmikita/git/esafe/hhvm/localhost.key | |
; HTTPS port | |
hhvm.server.ssl_port = 4000 | |
; Unleash the beast :D | |
hhvm.server.type = proxygen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "PROJECT_NAME", | |
"version": "3.0.3", | |
"description": "Short description about the project.", | |
"scripts": { | |
"server": "hhvm -m server -c hhvm.ini", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment