You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Antony Blakey (JIRA)" <ji...@apache.org> on 2009/03/03 01:57:56 UTC
[jira] Created: (COUCHDB-276) Should have a command line flag to
add to the erlang load path
Should have a command line flag to add to the erlang load path
--------------------------------------------------------------
Key: COUCHDB-276
URL: https://issues.apache.org/jira/browse/COUCHDB-276
Project: CouchDB
Issue Type: Improvement
Components: Infrastructure
Affects Versions: 0.9
Reporter: Antony Blakey
Priority: Minor
Given that the couchdb script allows new configuration files to be loaded, I think you should be able to add to the erlang load path a similar fashion, so that the new configuration files can refer to erlang code not included with couchdb itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (COUCHDB-276) Should have a command line flag to add
to the erlang load path
Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Lehnardt closed COUCHDB-276.
--------------------------------
Resolution: Won't Fix
You can set additional erlang args via environment variables.
i.e. ERL_AFLAGS="-pa /path/to/libs" couchdb
or ERL_LIBS="/path/to/liibs" couchdb
will do.
>From man erl:
Environment variables
[...]
ERL_AFLAGS
The content of this environment variable will be added to the beginning of the command line for erl.
The -extra flag is treated specially. Its scope ends at the end of the environment variable content. Arguments following an -extra flag are moved on the command line into the -extra section, i.e. the end of the command line following after an -extra flag.
ERL_ZFLAGS and ERL_FLAGS
The content of these environment variables will be added to the end of the command line for erl.
The -extra flag is treated specially. Its scope ends at the end of the environment variable content. Arguments following an -extra flag are moved on the command line into the -extra section, i.e. the end of the command line following after an -extra flag.
ERL_LIBS
This environment variable contains a list of additional library directories that the code server will search for applications and add to the code path. See code(3).
> Should have a command line flag to add to the erlang load path
> --------------------------------------------------------------
>
> Key: COUCHDB-276
> URL: https://issues.apache.org/jira/browse/COUCHDB-276
> Project: CouchDB
> Issue Type: Improvement
> Components: Infrastructure
> Affects Versions: 0.9
> Reporter: Antony Blakey
> Priority: Minor
> Attachments: 0001-Add-l-DIR-command-line-option-that-prepends-DIR-t.patch
>
>
> Given that the couchdb script allows new configuration files to be loaded, I think you should be able to add to the erlang load path a similar fashion, so that the new configuration files can refer to erlang code not included with couchdb itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-276) Should have a command line flag to
add to the erlang load path
Posted by "Antony Blakey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antony Blakey updated COUCHDB-276:
----------------------------------
Attachment: 0001-Add-l-DIR-command-line-option-that-prepends-DIR-t.patch
This patch adds an '-l DIR' command line option that prepends DIR to the erlang load path
> Should have a command line flag to add to the erlang load path
> --------------------------------------------------------------
>
> Key: COUCHDB-276
> URL: https://issues.apache.org/jira/browse/COUCHDB-276
> Project: CouchDB
> Issue Type: Improvement
> Components: Infrastructure
> Affects Versions: 0.9
> Reporter: Antony Blakey
> Priority: Minor
> Attachments: 0001-Add-l-DIR-command-line-option-that-prepends-DIR-t.patch
>
>
> Given that the couchdb script allows new configuration files to be loaded, I think you should be able to add to the erlang load path a similar fashion, so that the new configuration files can refer to erlang code not included with couchdb itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.