Skip to content

Deploy your SF org sites between org (w/o manually having to create them)

Notifications You must be signed in to change notification settings

CodisRedding/sf-deploy-sites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

sf-deploy-sites

Deploy your SF org .sites metadata between orgs (w/o manually having to create them)

  1. Create a dir in the root of your SF project name scripts (or whatever you want to name it, just update script paths).

  2. Update the salesforce.properties.* files to refect the orgs in your environment. So if your dev org is named MyDevBox then name name the properties file salesforce.properties.MyDevBox. Update the contents of the file too (kind of important =)).

  3. Update your .site files in your sites dir. Search for siteAdmin and remove the org specific nameappended tothe end of the site admins email and replace with [ENVNAME]. It should end up looking like this: fourq@gmail.com[ENVNAME].

  4. Deploy your sites. Run 'deploy.sh dev sites' (or deploy.bat). While deploying, ANT will replace the [ENVNAME] token with the name of the org your deploying to.

  5. Retrieve your dev org metadata by running retrieve.sh (or retrieve.bat if on windows). Check the .site files and it should again say [ENVNAME]. This is because ANT replaced your org name so that the next org you deploy to will have the correct name replace the token.

About

Deploy your SF org sites between org (w/o manually having to create them)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages