Publishing from development server to production server

alt=
DannyA
@dannya
10 years ago
584 posts
If I want to make sure the same code runs on 2 different environments what files should be excluded when I publish so as to break the configuration?

e.g. if i copy the code from my development server to my production environment, i should not copy over the data/config/config.php file because it will overwrite the configuration unique to the production server. What other files/folders are unique to an installation and should not be overwritten? the rest of the /data folder? htaccess files?
updated by @dannya: 05/03/14 07:32:03PM
douglas
@douglas
10 years ago
2,791 posts
I would not copy anything from the data folder over to your live site, everything else should be okay.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Hi Danny,

From when I last looked at xtraxx, evrything should be portable to the live site, so you could just do a fresh jr5 install and copy over your custom modules and skin.

You'd then need to reconfigure the live site and foxycart similar to the dev site.

Imo that would be quicker than trying to copy over parts of your existing dev site config. So that's what I'd do: everything is supposed to be portable so you only need to copy over the modules and skin. I'd also trial that move to a second dev server before trying it on the live site, bugs can be found.

Steve


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
alt=
DannyA
@dannya
10 years ago
584 posts
Thanks guys.

steve, that would be fine the first time but doesn't work on an ongoing basis. i.e., every time you make changes to your code, you wouldn't re-install and reconfigure everything, you just copy over the changed files. The problem is files in the data directory are changed on both servers so you wouldn't want to overwrite each others.
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
You jsut use the marketplace to update, or overwrite the files manually. You only need to reconfigure if you are creating a new website.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 04/03/14 02:33:46PM
alt=
DannyA
@dannya
10 years ago
584 posts
the marketplace requires ftp access to the server and is not secure. I don't know why someone would put that on a production system
brian
@brian
10 years ago
10,148 posts
andersda:
the marketplace requires ftp access to the server and is not secure. I don't know why someone would put that on a production system

The Marketplace does not require FTP access - that's only if your web server is not running as the same account as the jamroom user.

You should be using Ruid2 as outlined in my DO guide:

https://www.jamroom.net/brian/documentation/guides


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags