GitHunt
BR

brandonbk/endeavor-business-media

BaseCMS Websites for Endeavor Business Media

BaseCMS Websites for Endeavor Business Media

This monorepo contains the codebase for websites managed by Endeavor Business Media. All sites within this repository utilize the @base-cms/base-cms packages, most notably the marko-web and web-cli.

Copy Method

If you wish to use an existing site as a starting point,begin by creating a new branch and then copy the site directory (recursively) to the new site name:

cp -R sites/sitetocopy sites/mynewsite

This is a good time for the first commit, as you can then commit each change below individually (helps with code review later).

Next, update the following files:

# /docker-compose.yml
# Be sure to increment ports to unused values
+  my-new-site:
+    <<: *node
+    <<: *site-cmd
+    working_dir: /root/sites/mynewsite
+    environment:
+      <<: *env
+      <<: *env-clustername-staging
+      PORT: 80
+      EXPOSED_PORT: 9711
+      LIVERELOAD_PORT: 19711
+      TENANT_KEY: mynewsite_key
+      CDN_IMAGE_HOSTNAME: img.mynewsite.com
+      CDN_ASSET_HOSTNAME: cdn.mynewsite.com
+    ports:
+      - "9711:80"
+      - "19711:19711"
# /travis.yml
+    - stage: deploy
+      name: My New Site
+      script: deploy/index.js mynewsite clustername
+      install: skip
# /sites/mynewsite/package.json
-  "name": "@endeavor-business-media/sitetocopy",
+  "name": "@endeavor-business-media/mynewsite",
-  "author": "John Doe <johndoe@gmail.com>",
+  "author": "Jack Smith <jacksmith@gmail.com>",
-  "repository": "https://github.com/base-cms-websites/your-repository/tree/master/sites/sitetocopy",
+  "repository": "https://github.com/base-cms-websites/your-repository/tree/master/sites/mynewsite",
# /sites/mynewsite/config/core.js
-  siteName: 'Site to Copy',
+  siteName: 'My New Site',
# /sites/mynewsite/config/gam.js
-  const config = new GAMConfiguration('###########', { basePath: 'OLD' });
+  const config = new GAMConfiguration('###########', { basePath: 'NEW' });

# Add/Remove setAliasAdUnits values as needed
# /sites/mynewsite/config/gcse.js
-  const config = new GCSEConfiguration('#####################:aaaaaaaaaaa');
+  const config = new GCSEConfiguration('#####################:bbbbbbbbbbb');
# /sites/mynewsite/config/native-x.js
# Add/Remove setAliasPlacements values as needed
# /sites/mynewsite/config/navigation.js
# Update values as needed
# /sites/mynewsite/config/site.js
# Update values as needed
# /sites/mynewsite/server/styles/index.scss
# Update values as needed
# /sites/mynewsite/server/public/robots.txt
+  Disallow: /
-  Sitemap: https://www.sitetocopy.com/sitemap.xml
+  Sitemap: https://www.mynewsite.com/sitemap.xml
-  Sitemap: https://www.sitetocopy.com/sitemap-google-news.xml
+  Sitemap: https://www.mynewsite.com/sitemap-google-news.xml
# /sites/mynewsite/server/templates/subscribe/index.marko
# Update subscribe URL (found in old /sites/mynewsite/config/site.js)
# /sites/mynewsite/server/public
# Replace all icon files

When copying sites, ensure that unused components, templates, and routes are not copied inadvertently.

Languages

JavaScript68.6%HTML27.2%CSS2.9%Vue1.3%Dockerfile0.0%Shell0.0%

Contributors

MIT License
Created September 19, 2019
Updated December 10, 2020
brandonbk/endeavor-business-media | GitHunt