Created
February 27, 2017 17:31
-
-
Save mateomorrison/7e79dae75cad21a2b4cfe3733cb67737 to your computer and use it in GitHub Desktop.
Install Yoonic Nicistore on your Digital Ocean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone the repository | |
git clone https://github.com/yoonic/nicistore.git && nicistore | |
# Install | |
npm install | |
# Build | |
npm run build | |
# Run your server | |
npm run dev | |
# Redirect all request from Port 80 to Port 3000 where nicistore is listening | |
# http://stackoverflow.com/questions/16573668/best-practices-when-running-node-js-with-port-80-ubuntu-linode | |
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment