# Create a Project on OpenBSD
# Webpacker configuration
You should probably install webpacker by yourself. It will take a while to install (nodejs application):
./bin/rails webpacker:install
You will need to create a webpacker.yml configuration file.
echo > config/webpacker.yml << EOF
development:
# Production depends on precompilation of packs prior to booting for performance.
compile: false
# Cache manifest.json for performance
cache_manifest: true
# Compile staging packs to a separate directory
public_output_path: packs-staging
EOF
More information on webpacker github (opens new window).
# FAQ
# How to configure passenger and Nginx?
# How to pass header to passenger?
You can use passenger_pass_header directive.
- https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_pass_header (opens new window)
- http://thedataasylum.com/articles/adding-headers-to-requests-using-nginx-and-passenger.html (opens new window)
# How to debug rails?
# How to retrieve headers from http requests?
logger.debug "#{request.headers}"