Code4HR / norfolkart-tiles

A tile server instance for the iArtNorfolk map tiles.
GNU Affero General Public License v3.0
1 stars 0 forks source link

Heroku Instance. #3

Closed ghost closed 10 years ago

ghost commented 10 years ago

Up. :smiley:

Just a notification, @jonahadkins, @aimsrandom, @stanzheng, @jalbertbowden.

jonahadkins commented 10 years ago

AWESOME

ghost commented 10 years ago

Screenshot of iArtNorfolk using the tile stubs:

iartnorfolk-tilestream

jonahadkins commented 10 years ago

I generated some new tiles at the same spec as last night - they were 350mb :/

ghost commented 10 years ago

Vá... that still falls into the realm of acceptable repository size limits, right? :laughing:

jonahadkins commented 10 years ago

those were 24bit png's - what's the tilestache api say about using a mapnik xml document?

ghost commented 10 years ago

Tilestream or TileStache? Using TileStream at the moment.

jonahadkins commented 10 years ago

oh shit that's right... yeah - ill try to compress them down a bit

ghost commented 10 years ago

:laughing: No problem, dude. I can see about forking TileStache the same way, if we need.

ghost commented 10 years ago

Also, didn't mention this earlier, but I dig the New Hazzard gif. :laughing:

ghost commented 10 years ago

Having issues trying to get this running on OpenShift. Pretty sure because either tilestream doesn't install properly (I have a horrible time on Windows) or because it doesn't reference the index.js properly.

I'll have to check it out further at home.

jonahadkins commented 10 years ago

Just uploaded some jpg tiles, guess it's not an automatic update?

ghost commented 10 years ago

Nah, gotta upload it using Heroku. I can push/pull everything over if you prefer, or if you have a Heroku account @kmcurry or I can give you access if you'd prefer that.

jonahadkins commented 10 years ago

No need - you got it!

jalbertbowden commented 10 years ago

if you want to min the pix use kraken.io

On Fri, Aug 8, 2014 at 11:04 AM, Jonah Adkins notifications@github.com wrote:

No need - you got it!

— Reply to this email directly or view it on GitHub https://github.com/c4hrva/norfolkart-tiles/issues/3#issuecomment-51613822 .

J. Albert Bowden II

jalbertbowden@gmail.com

http://bowdenweb.com/

ghost commented 10 years ago

Up! :smiley:

jonahadkins commented 10 years ago

Not Toooo Bad.... Gonna add some place names, street names, etc. and refine the streets layer..

jonahadkins commented 10 years ago

@ryayak1460 Just cooked up some new tiles, time to cross the (tile)streams

ghost commented 10 years ago

Up, buddy. :smiley: Thanks once again!

jonahadkins commented 10 years ago

@ryayak1460 Can You Demo How You Set This Up On Wednesday? Like 10 Min.

ghost commented 10 years ago

Sure, no problem. Want to set up your own instance?

jonahadkins commented 10 years ago

@ryayak1460 It'd be beneficial to the group, and Wednesday is Maptime!

ghost commented 10 years ago

YEAH!

Basically, you sign up for a Heroku account, install the Heroku toolbelt, then run:

heroku login
git clone https://github.com/c4hrva/norfolkart-tiles.git
cd norfolkart-tiles
heroku git:remote -a YOUR-HEROKU-APP-NAME-HERE
git push heroku master

...et voilà!

As an example, my Heroku repository has the name norfolkart-tiles, so I'd run:

heroku login
git clone https://github.com/c4hrva/norfolkart-tiles.git
cd norfolkart-tiles
heroku git:remote -a norfolkart-tiles
git push heroku master

...to start from scratch. If you ever want to push updates, start in that directory, then run:

git pull origin master
git push heroku master

...after heroku login runs successfully. If you have any questions, I usually hop onto the c4hrva IRC channel even during work, so definitely pop in there and I'll see if I can answer them.

jonahadkins commented 10 years ago

@ryayak1460 As long as you'll be there Wednesday, ill pass it to you.

ghost commented 10 years ago

Haha, no problem, but those steps literally take you from 0 to instance in no time flat.

ghost commented 10 years ago

Hey @jonahadkins, I won't show tonight. Had a late start to work and need to stay til about 2046h or so, so I talked with other folks on the IRC channel about instructions for this in any sort of simple sense.

From a top-level perspective, though, you essentially write a Node.js configuration file with TileStream as a dependency so Heroku automatically pulls it in and sets it up to run.