can someone tell me where I can find a tutorial how to set vhosts or the other host files to use pantheon dev/live/testing versions?

Events happening in the community are now at Drupal community events on www.drupal.org.
AntiNSA's picture

Sorry i am new to libnux and trying to get my linode vps server running....

And I read the support site. Part said this:
[quote]
Pointing a domain to your server

When you are ready to take your Pantheon site live, all you need to do is update your Domain Name provider (DNS) to point to your instance on the platform. You should do this by using a CNAME record for the "live.yoursite.gotpantheon.com" domain.

As soon as the DNS change propagates, the live instance of your site will be available under the domain name.

Your dev and test environments will continue to operate normally.[/quote]

and this

[quote]

andthis

[quote]
Dev (/var/www/pantheon/dev) is the environment for development. This allows you to make and test changes without affecting your main site. Any code you commit to the server will be automatically merged into this environment. To view this site, use dev.site_name.getpantheon.com.
Test (/var/www/pantheon/test) is the environment for testing the code from dev against the files and database from live. To view this site, use test.site_name.getpantheon.com.
Live (/var/www/pantheon/live) is the version of your project that the world sees (via the url of site_name.getpantheon.com). Make sure to test your code before pushing it here![/quote]

And does are domain have to say "Gotpantheon.com" ?

I have pantheon running.....

And I can find hudson, but not the "PAntheon Control Panel"??? Any ideas?

Comments

getpantheon.com and Project

cweagans's picture

getpantheon.com and Project Mercury are two different things. Project Mercury is a self hosted high performance stack for running Drupal, while getpantheon.com is a SaaS product that does basically the same thing with a nice control panel in front of it.

--
Cameron Eagans
http://cweagans.net

I thought mercury=pantheon? I

AntiNSA's picture

I thought mercury=pantheon?

I am a little confused. Because when I look in the file to I can see:

<VirtualHost :8080>
        ServerAdmin webmaster@localhost
        ServerName live
        ServerAlias live.
.gotpantheon.com
       
        SetEnv db_name pantheon_live
        SetEnv db_username pantheon
        SetEnv db_password cuvrnVRLBf
        SetEnv solr_path /pantheon_live
        SetEnv memcache_prefix pantheon_live

        DocumentRoot /var/www/pantheon/live
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/pantheon/live/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Now I have for hours been trying to figure out how to set up the virtual host file, watching every video and reading everything I can.....

I cant understand why it says :

ServerAlias live.*.gotpantheon.com

Is this something we should change to like

ServerAlias live.myhostname.com
or something?

I guess not, because you dont have to type in
live.mysite.com

to see the live version of your site.....

However, I am uable to type in dev.mysite.dom and see the dev version of my site.....

So I am confused and feel so stupid that I havent figured out how to do this yet. I have for days just started to learn this to get my project running... Im a single man non profit in China and pretttyyy busy teaching....

This is taking me longer than I thought to figure out.

I cant find any cleary tutorials to set up the virtual hosts with mercury . Im using linode, and I am trying to figure this out or go with Aegir, which I would also havew to learn. I hopw I can make pantheon work...

re: I thought mercury=pantheon? I

Greg Coit's picture

You can (and should) change the domain names in the vhosts file. "live" is setup to be available even if you don't use live.domain.com as the domain - it's the default.

For dev and test to work, they must match the domain you're typing into your browser.

Hope this helps,

Greg

--
Greg Coit
Systems Administrator
http://www.chapterthree.com

but the thing was I did type

AntiNSA's picture

but the thing was I did type that into my vhosts file. bt going into live.thecenterofthenet.com was not working. I am looking forward to the release of doccumentation and I will try it again . It looks like a great project!

Ive since learned to add live

AntiNSA's picture

Ive since learned to add live and dev to linodes A domain registration people. I learned that when I was trying to get aegir to work...

So for anyon e with the same problem. I am looking forward to pantheons verson of multisite!

Solution: Have a wildcard

bmx269's picture

Solution:

  • Have a wildcard cname * to yoursite.com
  • Change /var/pantheon/fab/pantheon/project.py

as below

Line 182ish

for env in self.environments:

        if pantheon.is_private_server():
            server_alias = '%s.*' % env
        else:
           server_alias = '%s.%s.yoursite.com' % (env, self.project)   <-------- CHANGED

        vhost_dict = {'server_name': env,
                      'server_alias': server_alias,
                      'project': self.project,
                      'environment': env,
                      'db_name': '%s_%s' % (self.project, env),
                      'db_username':self.project,
                      'db_password':db_password,
                      'solr_path': '/%s_%s' % (self.project, env),
                      'memcache_prefix': '%s_%s' % (self.project, env)}

OR as long as you use the whole domain name as the project name, below.

for env in self.environments:

        if pantheon.is_private_server():
            server_alias = '%s.*' % env
        else:
           server_alias = '%s.%s' % (env, self.project)   <-------- CHANGED

        vhost_dict = {'server_name': env,
                      'server_alias': server_alias,
                      'project': self.project,
                      'environment': env,
                      'db_name': '%s_%s' % (self.project, env),
                      'db_username':self.project,
                      'db_password':db_password,
                      'solr_path': '/%s_%s' % (self.project, env),
                      'memcache_prefix': '%s_%s' % (self.project, env)}

Mercury

Group organizers

Group categories

Post Type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: