Skip to content

Instantly share code, notes, and snippets.

@deekshithh
Created August 8, 2019 13:30
Show Gist options
  • Save deekshithh/49ccadb6fb3f0fda81bdf600573f2012 to your computer and use it in GitHub Desktop.
Save deekshithh/49ccadb6fb3f0fda81bdf600573f2012 to your computer and use it in GitHub Desktop.
Capistrano set the environment variables.
# Here NODE_OPTIONS is the environment variable.
# Set the NODE_OPTIONS in case of webpacker "CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
set :stage, :staging
set :user, "ubuntu"
set :default_env, {
"NODE_OPTIONS"=>"--max_old_space_size=2048"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment