NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Im trying to setup local version of openstreetmap-website on my VPS with ubuntu 16.04 installed. I did like it says in https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md . Seems like everything passed good, no errors in db migrate and test (1087 runs, 327227 assertions, 0 failures, 0 errors, 0 skips). I start server by running command "bundle exec rails server", here is the output:
=> Booting WEBrick
=> Rails 4.2.8 application starting in development on http://localhost:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
svgo worker: svgo not found; please provide proper binary or disable this worker (--no-svgo argument or :svgo => false through options)
[2017-04-28 09:30:21] INFO WEBrick 1.3.1
[2017-04-28 09:30:21] INFO ruby 2.3.1 (2016-04-26) [x86_64-linux-gnu]
[2017-04-28 09:30:21] INFO WEBrick::HTTPServer#start: pid=11827 port=3000

So it seems like server starts, and running. But i cannot access it throught browser, either by ip or domain, with port 3000, no connection. So how can i solve this problem, do i need to change any config, or how else i can start this API, to be accessible through internet?

asked 28 Apr '17, 08:45

Dezurat's gravatar image

Dezurat
30114
accept rate: 0%

edited 29 Apr '17, 00:51

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


As the instructions say running: "bundle exec rails server" starts the server listening on localhost (port 3000).

Run "bundle exec rails server -help" to get all options, as you will see you need the "-b" to specify a different address to listen on.

permanent link

answered 28 Apr '17, 09:55

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 28 Apr '17, 09:56

To Start the Server use

rails server --binding=YOUR_IP_ADDRESS

not

bundle exec rails server

I found this soulution somewhere in the www and it works

permanent link

answered 21 Dec '17, 01:03

MagSungam's gravatar image

MagSungam
112
accept rate: 0%

edited 21 Dec '17, 10:39

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×290
×123
×61
×29

question asked: 28 Apr '17, 08:45

question was seen: 4,258 times

last updated: 21 Dec '17, 10:39

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum