Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ab73ddbf
Commit
ab73ddbf
authored
Jan 15, 2016
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2195 from ipfs/feature/env-var-docs
Added env var info to init, dameon help
parents
adfe1978
6f222711
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+7
-0
cmd/ipfs/init.go
cmd/ipfs/init.go
+10
-1
No files found.
cmd/ipfs/daemon.go
View file @
ab73ddbf
...
...
@@ -100,6 +100,13 @@ Shutdown
To shutdown, kill, quit, or otherwise stop the daemon, send a SIGTERM signal.
If it persists, send a second. This can be done by pressing Ctrl+C twice.
IPFS_PATH environment variable
ipfs uses a repository in the local file system. By default, the repo is located
at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
export IPFS_PATH=/path/to/ipfsrepo
DEPRECATION NOTICE
Previously, IPFS used an environment variable as seen below:
...
...
cmd/ipfs/init.go
View file @
ab73ddbf
...
...
@@ -21,7 +21,16 @@ const nBitsForKeypairDefault = 2048
var
initCmd
=
&
cmds
.
Command
{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Initializes IPFS config file"
,
ShortDescription
:
"Initializes IPFS configuration files and generates a new keypair."
,
ShortDescription
:
`
Initializes IPFS configuration files and generates a new keypair.
IPFS_PATH environment variable
ipfs uses a repository in the local file system. By default, the repo is located
at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
export IPFS_PATH=/path/to/ipfsrepo
`
,
},
Options
:
[]
cmds
.
Option
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment