# 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.

# How to debug rails?

# How to retrieve headers from http requests?

logger.debug "#{request.headers}"

# How to query database with Active Record?

# How to insert element to database?

# Resources and References