Moving blocks from local environment to remote server

Permalink Browser Info Environment
I'm pretty sure this falls into the "can't move DCP blocks from site to site" category, but I'll ask anyway: is there a simple way to move a DCP-created block from a local (MAMP) environment to the remote production server? It won't be a huge pain in this case to recreate, but I'm curious if it's possible to do it more easily.

I've been spoiled by the portability of regular Designer Content blocks all this time.

Type: Discussion
Status: New
kirkroberts
View Replies: View Best Answer
theblockery replied on at Permalink Best Answer Reply
theblockery
Hi Kirk,
I am working on a feature that will allow for very easy moving of custom blocktypes from one site to another, but it's not ready yet. In the meantime, you can do this yourself by copying 2 folders from your local machine to your server:

1) /packages/designer_content_pro_blocks/blocks/your_blocktype_handle

2) /blocks/your_blocktype_handle

So you move those two folders (specifically, that set of 2 folders for each custom blocktype) to the same location on the server and then you should see them appear in the Designer Content Pro dashboard page.

For example, let's say you have two custom blocktypes, one with the handle "super_slideshow" and the other "q_and_a_listing"... then you will have 4 total folders to copy from local to server:
1) copy the LOCAL_SITE_ROOT/packages/designer_content_pro_blocks/blocks/super_slideshow folder to SERVER_SITE_ROOT/packages/designer_content_pro_blocks/blocks/super_slideshow
2) copy the LOCAL_SITE_ROOT/blocks/super_slideshow folder to SERVER_SITE_ROOT/blocks/super_slideshow
3) copy the LOCAL_SITE_ROOT/packages/designer_content_pro_blocks/blocks/q_and_a_listing folder to SERVER_SITE_ROOT/packages/designer_content_pro_blocks/blocks/q_and_a_listing
4) copy the LOCAL_SITE_ROOT/blocks/q_and_a_listing folder to SERVER_SITE_ROOT/blocks/q_and_a_listing

Now if you go to the Designer Content Pro dashboard page on your server site, you should see those 2 blocktypes in the list (and you'll either need to install them and add the blocks to the appropriate pages on the site, OR copy the database from local and restore to the server if you already have content set up on local).

Hope that helps, and if you run into any trouble or are confused about the process, please don't hesitate to get in touch again and I can provide more specific directions as needed.

Thanks,
Jordan
theblockery replied on at Permalink Reply
theblockery
One more thing to add... unlike the free version of Designer Content, you must have the Designer Content Pro addon installed in order for the custom blocktypes to work.

And as far as I'm concerned it's totally fine to use the 1 license you have on both the local/dev machine and the live server as long as it's for the same website project (not sure if this is how the C5 marketplace license is structured, but you have my explicit permission to do so).

-Jordan
kirkroberts replied on at Permalink Reply
kirkroberts
This is great, Jordan, thanks!

And thanks for the okay on using the same license for local and production use. The c5 marketplace seems to treat that as one site as well.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.