Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Standalone apps can be moves to dev using a gulp command. You will just have to ensure that your .env file will point to the right folder, then just browse the URL and you’re done (see example below)

For QA deployment, there is also a Gulp command involved, that will pack all your app in a ZIP file. We have then to go through an email request to Webmaster, and they will deploy the app.

Step by step procedure

In package.json, make sure your package.json has the right flag “isEmbedded": false

Set-up the deployment on a Mac

Mount network folders

  • In terminal, run the command to list the folders inside /Volumes

    Code Block
    languagebash
    themeEmacs
    cd /Volumes && ls -la
  • If you already have your inet mounted for netshare, you should see it. There should NOT be any inet-1 folder (unless you previously mounted it)
  • If you don’t have your inet mounted, mount it: Command+K , then enter smb://netshare.toronto.ca/inet and hit Connect.
  • Then mount the following url: smb://was-intra-sit.toronto.ca/inet/insideto-secure
  • In terminal, run the following command and ensure you can see both inet and inet-1 . The first is the inet from netshare and the other one is from was-intra-sit.toronto.ca

    Code Block
    languagebash
    themeEmacs
    ls -la

.env file

Once your folders are mounted right, you need to change your project’s .env file to point it to inet-1.

  • Set your development deploy path as DEV_DEPLOY_PATH=/Volumes/inet-1/insideto-secure/docs/webapps/<your app name>
  • Set your QA deploy path as QA_DEPLOY_PATH=/Volumes/inet-1/insideto-secure/docs/webapps/work/YourName/
  • Save your file

Set-up the deployment on PC

Mount network folders

  • Create a new network drive from \\was-intra-sit.toronto.ca\inet\insideto-secure\docs\webapps\ and assign a letter (example:X)

.env file

  • Set your development deploy path as DEV_DEPLOY_PATH=x:\<your app name>
  • Set your QA deploy path as QA_DEPLOY_PATH=x:\work\YourName
  • Save your file

Deploy your code

When you’re ready to deploy to DEV:

When you’re ready to deploy to QA:

  • run the command gulp release:qa
  • your app will be package in the folder you set before (inet-1 > insideto-secure > docs > webapps > work > YourName )
  • The ZIP will have the app name and a deployment date .
  • Send that ZIP to webmaster. There are 2 different “operation” : create OR replace. Mention it in the email (see below)
  • Body of your email should contain something like :

Sample email :

Hi WebMaster,

Can you deploy/replace the following to QA?

NAME OF YOUR APP

URL : https://was-intra-qa.toronto.ca/webapps/ Please let me know if you require anything else from me or need any additional information.
Thanks, YourName

Page Tree

Page Tree
rootCoreJS CotJS Documentation