public
Description: social networking framework with multi user blogs, developed in Rails 2.0.2 completely RESTful
Homepage: http://blogpub.ro
Clone URL: git://github.com/sergiutruta/blogpub.git
Click here to lend your support to: blogpub and make a donation at www.pledgie.com !
updated the README with instructions on how to use and test on localhost
sergiutruta (author)
Sat Jun 28 00:13:55 -0700 2008
commit  451b493bee980cc2ea2fa2caddd1ac11fae81749
tree    b8411873293e6c08c28f0df241bb085a242ac616
parent  6e97fb9310962ad9a4ac6a37b5d2a0e5b5a5c087
0
...
8
9
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
12
13
...
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -8,6 +8,23 @@ Language Support
0
 
0
 It supports any language you need, using the great Polyglot localization plugin. As is, it supports Romanian and English. You can add your own language by going to vendor/plugins/polyglot/languages and creating you own language file, for example de.yml. Copy everything from the en.yml and start translating the messages into german or whatever other language you've chosen.
0
 
0
+Using BlogPub on localhost
0
+===========================
0
+
0
+In order to use subdomains on localhost, you can do the following:
0
+Open the following file: /etc/hosts, and add into it a few domains and subdomains that you'd like to use while testing on localhost. I use the .dev extension for the local domains, but you can use whatever you like. Though be careful not to define a domain which is a real domain. For example defining
0
+
0
+127.0.0.1 www.google.com
0
+
0
+would send any request from the browser for "www.google.com" to your own machine, not to the real Google. That's why I use a .dev extension, which is not a real one. So, back to what you define into your hosts file. Let's use the macbook.dev main domain, with subdomains john.macbook.dev (for the user john) and chris.macbook.dev (for the user chris). The following lines should be added into your hosts file:
0
+
0
+127.0.0.1 macbook.dev
0
+127.0.0.1 john.macbook.dev
0
+127.0.0.1 chris.macbook.dev
0
+
0
+If you want to test more subdomains for more users, you should add a line here for each one.
0
+Now, you should be able to go to "macbook.dev:3000" in your browser, and log in as chris (or john) and you'll be redirected to the correct subdomain.
0
+
0
 Support
0
 ========
0
 
...
70
71
72
73
 
...
70
71
72
 
73
0
@@ -70,4 +70,4 @@ end
0
 after "deploy:update", "rorails:symlink"
0
 after "rorails:symlink", "rorails:copy_config_files"
0
 after "rorails:copy_config_files", "deploy:cleanup"
0
-# after "deploy:restart", "rorails:restart_mongrels"
0
+after "deploy:restart", "rorails:restart_mongrels"

Comments

    No one has commented yet.