Dev Website in Parallel to Prod

Can anyone share their best known methods for taking a Blocs project and exporting out a production site as well as one in development on different servers and/or paths?

I’m thinking I could…

  1. Duplicate the Blocs project for development
  2. Change the Web Address in the project settings to the dev server/path
  3. Export to place on the server

Of course very doable, but sort of a hassle to undo things when you move development into production.

Are there any better ways to do this?

Either this or use GIT / Github for version control.

Always use subdomains.

Many thanks and it looks like I’m headed down the right path.

P.S. Already using version control, but as the Blocs project file itself is binary, this only works for exports. I of course check these in but consider them non-permanent (e.g. sort of in the same way that I would consider a PSD file as source but the exported PNGs or JPGs as renders/output/transitory).

Even if it is binary, you have a version history of this atomic file in Git.

But you are correct, a non-binary format would help in lowering the size of the version, but most probably you would not be able merging different changes in a version update.

1 Like

We usually use MAMP PRO to develop everything locally. Since we usually have a lot of JavaScript and PHP, it works well for us.

The Blocs project saves locally to a folder, and in the MAMP settings, this folder is used as the root folder. However, you have to make sure that the PHP and Maria/MySQL versions of MAMP and the actual server are not too far apart. But if you only use standard SQL and PHP, this should cause few problems.

If everything fits, it is synced from the local folder or uploaded via FTP.

1 Like