Changing HOST name

5 views
Skip to first unread message

JB

unread,
Jul 23, 2013, 9:04:16 AM7/23/13
to zena...@googlegroups.com
Hi Gaspard,

I designed my small Zena application on a generic Host and I want to move it to the real Host now. It's on the same server but different urls. Say now I access the application through www.generic_host.com and I would like to access it through www.final_host.com

Is there a simple way to do this?

I am still with Zena 1.1.2
I saw there's a support for site alias in earlier versions of zena, but so far I am not really eager to upgrade zena. I gave it a try but bumped into lots of trouble with gems versions and it's really time consuming...

Thanks!

Gaspard Bucher

unread,
Jul 24, 2013, 5:45:29 AM7/24/13
to zena
Hi JB,

There is a capistrano task to rename a website (updates everything including vhost files, awstats, logrotate, etc):

cap rename_site -s host='new.website.com' -s old_host='old.website.com' -s pass='WASTATS_PASSWORD'

Or a rake task which only renames the host and moves the main directory:

rake zena:rename_site HOST='new.website.com' OLD_HOST='old.website.com' RAILS_ENV='production'

Gaspard


--
--
_______________________________________________
zena mailing list
ze...@zenadmin.org
http://zenadmin.org/en/community
---
You received this message because you are subscribed to the Google Groups "zena" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zena-talk+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

                                                               Gaspard

Jean-Baptiste Bonnet

unread,
Jul 24, 2013, 6:31:43 AM7/24/13
to zena...@googlegroups.com
Hi Gaspard,

I was just reading the "zena.rake" file where one can find this "rename" function.

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages