Last active
August 29, 2015 14:19
-
-
Save danbjoseph/6fb39ae979b8e87c55d8 to your computer and use it in GitHub Desktop.
osm-meta-api install
This file contains hidden or 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
cd / | |
sudo wget http://nodejs.org/dist/v0.12.2/node-v0.12.2-linux-x64.tar.gz | |
sudo tar -C /usr/local --strip-components 1 -xzf node-v0.12.2-linux-x64.tar.gz | |
node -v | |
npm -v | |
sudo npm install pm2 -g | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install git | |
git --version | |
sudo apt-get install oracle-java7-installer | |
java -version | |
sudo apt-get install build-essential | |
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb http://packages.elasticsearch.org/elasticsearch/1.5/debian stable main" | sudo tee -a /etc/apt/sources.list | |
sudo apt-get update && sudo apt-get install elasticsearch | |
sudo update-rc.d elasticsearch defaults 95 10 | |
sudo /etc/init.d/elasticsearch start | |
export ES_SERVER="http://localhost:9200" | |
sudo git clone https://github.com/osmlab/osm-meta-api.git | |
cd osm-meta-api | |
npm install | |
node bootstrap.js | |
pm2 start app.js | |
sudo apt-get update | |
sudo apt-get install screen | |
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-screen-on-an-ubuntu-cloud-server |
Author
danbjoseph
commented
Apr 21, 2015
yeah, you shouldn't have to sudo npm install. I think you need to chown and chmod the folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment