Server Setup

This may not be the place to ask but I am developing a site locally that uses typekit fonts ith the following Javscript to set up the fonts:

<script type="text/javascript" src=""></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

The typekit web site says to use localhost to be able to use the fonts for local development. I did this but it is not working - or at least the fonts aren't appearing.

I think the problem is that I need to be rnning my local file on a server rather than just reading the local html files.

I am on Fedora and I've been working on installing nginx which I have mostly done but it seems that this is way too much trouble for what I want to do. I am using Rubymine rather than webstorm but I asume it is the same idea and the thought has occured to me that I will also need a server for my rails app when I get there. It seems that mongrel may be installed with rubymine

I have been ablt to rn the jquery library locally wiithout any problem  - so maybee this whole server thing is not necesary

Any suggestions?


Comment actions Permalink

See Tools -> Context:

P.S. I'm bored with forum bugs. It posted answer to wrong thread again. This answer is for question.

Message was edited by: Dmitriy Zavalkin

Comment actions Permalink

You definitely need a local http (web) server for most advanced javascript stuff to work. Files accessed via file system (file:// protocol in browser address bar) will never work properly, as http-served ones. I'cant give you're advice on which server to use and how to setup it on your os. The idea is that any server should work for serving static files. If your app uses some serverside framework (ruby rails, php, pyton etc.) you should consult their site on appropriate info.

Comment actions Permalink

Ehcp is a great easy way to set up a server.

It handles multiple domains too.  So you can replicate the live server on your local machine.

To give it even more feel like you are working on the live server, load ubuntu server ( onto virtualbox ( both are free.  then you will have a copy of your live server to work on, but portable and available offline.


Please sign in to leave a comment.