mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Update install.sh
This commit is contained in:
parent
d178d4a095
commit
d1a59e5d6f
@ -3,6 +3,9 @@
|
||||
# README
|
||||
# This will install nodejs and npm on your system,
|
||||
# should work on most places other than Windows.
|
||||
# Set any environment variables before you run this,
|
||||
# like `export RAD=false` to disable storage, or
|
||||
# pass file paths of `HTTPS_CERT` & `HTTPS_KEY`, etc.
|
||||
# Copy paste and run each line into your terminal.
|
||||
# If you are on Windows, http://nodejs.org/download/ has
|
||||
# an installer that will automatically do it for you.
|
||||
@ -12,10 +15,10 @@
|
||||
su -
|
||||
apt-get install sudo -y
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install curl git git-core -y
|
||||
sudo apt-get install curl git git-core screen -y
|
||||
#fedora/openSUSE
|
||||
sudo yum check-update -y
|
||||
sudo yum install curl git git-core -y
|
||||
sudo yum install curl git git-core screen -y
|
||||
|
||||
# install nodejs
|
||||
git clone http://github.com/isaacs/nave.git
|
||||
@ -23,8 +26,10 @@ sudo ./nave/nave.sh usemain stable
|
||||
# If you just want nodejs and npm but not gun, stop here.
|
||||
|
||||
npm install gun
|
||||
|
||||
# to run the gun examples:
|
||||
cd ./node_modules/gun
|
||||
npm install .
|
||||
sudo /usr/local/bin/node ./examples/http.js 80 # change `80` to `8765` for development purposes.
|
||||
|
||||
# to start the gun examples:
|
||||
screen -S relay
|
||||
sudo npm start 80 # change `80` to `443` for https or `8765` for development purposes.
|
||||
# You can now safely CTRL+A+D to escape without stopping the peer. To stop `killall screen` or `killall node`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user