-
Notifications
You must be signed in to change notification settings - Fork 18
install on server #41
Comments
Hey @devinrsmith, Also bad news: we don't have a single, comprehensive, up to date tutorial on manually setting up Pelias. What we currently have is split between the document you linked to, an old blog post, which is out of date, and the readme for one of our importers. There is useful information in all of them though. Fortunately, consolidating those resources is now at the top of our list of things to do, and you should start to see some better setup instructions soon. In the meantime, they roughly look like this: 1.) install elasticsearch As we update the documentation I'll try to update you here and we would love your feedback to continue to make our docs better. |
Thanks for the quick response. I think I understand the large picture of how the system works (as you have laid out in yours steps). The hard part is in the details :) I'm not sure what the status of pelias/vagrant is, but it looks like there a few key components that Vagrant bootstraps off of: the Berksfile, chef.json, and chef.run_list. I'm assuming there is some easy way to decouple these settings (specifically the chef.json and chef.run_list) from Vagrant and execute them directly. This might be an easy place to start if they existed. (While it would be easier to just use Vagrant, my local box is underpowered, and our VPS servers don't play nicely with virtualbox.) Our dataset would require a very small subset of the data... just one osm metro extract and the corresponding openaddresses. It would be very convenient to be able to reliably reproduce the server setup for testing and development purposes. In the very short term if we can't get a server up, hopefully we'll be able to substitute in Mapzen Search. Looking forward to the improved documentation and setup! |
Hey Devin, been doing some similar work lately. I'll add that, if you're setting up a local version, it might be best to use the 'production' repos instead of dev. They may not line up with the current documentation, but you'll have less problems calling and getting results from whatever data you import (IMHO). |
Have you had any success with this, @easherma? How did you end up, @devinrsmith? |
Hey everyone, we also have brand new full installation docs. They explain how to set up a full Pelias install manually so as to cover all the pieces involved. Please take a look and if anything is confusing or omitted, let me know. Improving the Vagrant image and breaking out the chef scripts hidden in our infrastructure and in this repo is on our radar for the near future. |
@brianjcollins like @orangejulius mentions, I ended up doing a manual install. Ironically, I found it easier to follow and troubleshoot than the 'click and run' promise of the vagrant build, especially because it forced me to learn more about how the modules all fit together. |
That's perfect, thanks @orangejulius! I'll build it out over the weekend, and if I have anything to add, I will let you know. @easherma Agree 100%, never a bad idea knowing how all the pieces move. |
I'm assuming it's a formatting issue, but I can't get any 'npm start' to function when pelias.json is in my users root folder. I've removed a lot of key/values that didn't seem necessary in pelias.json where the defaults would suffice, however, I can't seem to get much of an output to help me diagnose the problem line. If I remove pelias.json, it gives a different error, that at least is easily understood, it can't stat the location of the defaults for openstreetmap.
|
hey @brianjcollins, |
I figured as much, however, even while using the following, it errors. I initially went to... https://github.com/pelias/config/blob/master/config/local.json to get the example and removed the data peice by peice hoping to find the problem line, however nothing allowed npm to succed.
|
Huh, ok. So looking at the line in question, it looks like it might be some sort of error actually loading the file. Can you make sure the config file is actually at |
Actually, your first intuition was correct. It was JSON formatting, why I don't know though... I used the following and it succeeded. Possibly due to the newlines between the brackets and braces? I don't know, but it's working...
|
As I worked through this process, I recorded my steps and put it into a public gist. It isn't ground breaking, but it's start to finish from a clean instance to having pelias installed with some data. I saved it for myself but I figured it might save someone some time. Obviously, improve, replicate, etc etc.. [https://gist.github.com/brianjcollins/66fefa3a08f8be355b11cb00a1c2b7d0] |
Awesome, thanks for sharing! On Sat, May 28, 2016 at 3:02 PM, Brian Collins [email protected]
Eric Sherman |
I'm trying to install pelias on a server (no vagrant). Even though this is the vagrant repository, it also seems like this is also the central source for bootstrapping and importing data into the server.
I was hoping that https://github.com/pelias/pelias/blob/master/INSTALL.md would help me bootstrap the system, but no such luck at the moment.
I'm not familiar enough with chef(-solo?) to figure out how to transform the Vagrantfile into a pure chef solution. Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: