Skip to content

Enome/umbraco-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Made by Enome Webdesign:
########################

Asp.net WebApp with a deployment batch and a file structure that can be source controlled. 

Version 0.2
#######################
-Added media pushing on init and media pulling on post build event.
-The _db and _media folder shouldn't be touched by human hands. 
-Added SuperFetcher which will superfetch your database dump files(MySql only). SuperFetcher requires python27 to be installed. c:/python27.python.exe. To use it just click the uSuperfetch.bat in Umbraco.SourceFiles

Future Features: 
#######################
-SuperPusher to restore the database on init.bat.
-Compile the py scripts into *.exe so you don't need python installed

********WARNING********
#######################
The bin folder does a normal copy and shouldn't be a problem. The warning is for all the other folders. If you build, the batch file will mirror all the directories(except bin). This means that if the target folder has a file that doesn't exist in the source folder it will get REMOVED. It will also overwrite older files. That means that the same files or newer files won't get touched.

RobocopyThis will also pull from the Umbraco.Framework folder after it mirror'd. I added this because sometimes you want to adjust a file inside the Umbraco back-end. It only works for files that are also in the source dictory. So if you create a file in the back-end mirror will DELETE it before it can get pulled.

Example:
ROBOCOPY %sourcedir%css %targetdir%css /MIR /XO /E
First we mirror(/MIR) the source directory with the umbraco css directory/subdirectories(/E). This will overwrite older files(/XO) but don't touch the same or newer files. So if you adjusted a file in the back-end that's also in the source it wont be overwritten.

ROBOCOPY %targetdir%css %sourcedir%css /XO /E
This will copy from the umbraco css directory to the source directory but will only overwrite older files. The same as above but it wont delete files that don't exists in the target directory.

USAGE:
########################
-Run the init.bat
-This will create the Umbraco.Framework folder.
-Copy your Umbraco files into the Umbraco.Framework folder.
-It will also create a few empty folders in Umbraco.SourceFiles because GIT doesn't source control empty folders.
-The RobocopyThis.bat file gets called in the post build event.
-You can adjust it(it's not hard) to whatever you like.

About

Easy to source control umbraco structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published