WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] hosts IP domain mapping & validating (6 posts)

  1. lonchbox
    Member
    Posted 10 months ago #

    Hi,

    I love this plugin, thanx for developing :)

    My question is regarding activation of Jetpack Plugin in a pre-production server. I know I can use a debug more for develop with this code define( 'JETPACK_DEV_DEBUG', true); in wp-config.php.

    In this case I´m using the real domain but changing the IP with my etc/hosts file, mapping. ¿Can I connect jetpack in this server?, I mean, the IP and domain are not visible is just for develop, I want to do this so when the server moves to the LIVE IP jetpack is already connected so all the features are visible and don´t break the theme.

    Is not a migration, you know, is just an IP change.

    Thanx.

    http://wordpress.org/plugins/jetpack/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 10 months ago #

    Hi there,

    That won't work proerly, because Jetpack needs to be able to communicte with the site for it to connect, and if you are using the domain and changing your hosts file, then when we try to connect to the domain, we won't be able to reach it.

    Here's what I would do, though:

    1) develop on your pre-production server in Dev mode
    2) migrate the db to the live site
    3) activate Jetpack and connect it

    It shouldn't take more than a few minutes to configure the modules you want, if you were to just drop in a fresh Jetpack install into your production site and activate it then, without migrating it.

    if eithe rof these options don't sound feasible for you, can you explain why not? I can make note of the issues you think you'll have, and maybe the Jetpack team can work on fixing those possible issues for a future release.

    Thanks!

  3. lonchbox
    Member
    Posted 10 months ago #

    I know there is an options using a hack in functions.php to use the deb mode, I used already.

    In many clients enviroments there is one server:

    1. developing (CODING) -> dev.domain.com
    2. pre-prodution (LIVE MIRROR) -> mapped IP domain.com
    3. production (LIVE) -> domain.com

    In the server 1 I use jetpack dev mode, for in server 2 would be cool to use a real connection thru jetpack, becasue in that serer have the same is a mirrow and need to be the same as the server 3.

    Right know I solve this, using a Maintenence Mode plugin, so before launch I do the connection. It solve in a way but is not a real solution.

    Jetpack is a fantastic plugin hope they include a new featured for this kind of situations :)

  4. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 10 months ago #

    I see what you mean. I don't think it would be possible though because the WordPress.com servers need to be able to reach the site for Jetpack to work, and when the site communicates with our servers, it includes the site's URL in the information that is passed back to us. If you have 2 sites passing back the same URL, that will definitely cause issues with several Jetpack modules.

  5. lonchbox
    Member
    Posted 10 months ago #

    Ok, but what if like the same hack to debug jatpack is a new one to tell jetpack or WordPress.com to "map" the domain, tell it it´s fake, just for test.

    BTW, I try to find how many sites I have connected with jetpack to my WordPress.com Account and I can´t find anything, no overview page, like the same as app allowed to connect. :P

  6. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 10 months ago #

    That's an idea, but a pretty complicated one to implement, I'd guess. However, feel free to open a new Trac ticket with the idea, here:

    http://plugins.trac.wordpress.org/newticket?component=jetpack

    As for seeing which sites are linked to your WordPress.com account, you can see that if you log in to WordPress.com, on the http://en.wordpress.com/my-blogs/ page.

Reply

You must log in to post.

About this Plugin

About this Topic