Displaying 1 result from an estimated 1 matches for "mys2n0q".
2008 May 11
0
Switching Google Maps API Key from Deplyoment to Production
...ve a rails app that used Google Maps in some of the views. In order
to use it I have to include the following code at the top of my view:
<script
src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAIMKpaY7H31fBaN42JFh17RTJQa0g3IQ9GZqIMmInSLzwtGDKaBR7f3BOyzEp9wqLchJrd7-MYS2n0Q"
type="text/javascript"></script>
However, I have two separate keys - one for production and one for
development. What is the best way to organize them so that when I use
Capistrano to upload my app and run it in production mode the correct
API key gets loaded?
Thanks,
St...