Setup Checklist
Setup Checklist for Whitelabel Portal
Client Requirements
MagLoft To-Do
1. Create a new Whitelabel Account in Local Development

Fields:
Identifier : The white-label account identifier, usually the same as the name but all lower-case
Name: The white-label account name
Host: Domain for accessing the white-label portal, use temporary one for development.
Example: [identifier].magloft.dev
Match: Advanced matching for the domain
Protocol: This is either http/https, it depends on wether the client asks for HTTPS or not
Portal Version: Portal version for this account, usually get the latest one on other white-label account
Lockin:
Active: Wether the white-label account is active or not
User: Owner of the white-label account
Properties: Properties to set for the white-label account
docs for properties whitelabel
Properties:
clear tmp after change whitelabel recompile when deploy create css template for
2. Setup Whitelabel Portal Assets
1. Get all required Assets from other Whitelabel Account
2. Update all the required assets
Download the
.sketchfile from this link: https://drive.google.com/open?id=1WXARC2w_MlOugZSffpi5kc6vtUPl_mFdUse that
.sketchfile as a template for creating the needed assetsExport & replace all assets in the folder with the updated ones
3. Upload updated assets to CDN
4. Create SCSS file for styling the white-label portal
Setup Local Proxy
Disable proxy for portal in local development so the portal will be served from the
cloud-serverYou can do this by simply adding
return nullon the first line of theresolverfunction
Allow proxy for accessing
cloud-serverfrom the temporary whitelabel domain eg: lighthouse.magloft.devYou can do this by adding a new regex on the if statement of the
resolverfunction forcloud-serverproxy
Edit your
hostsfile so that a request to the temporary whitelabel domain is routed to localhost
Create new stylesheet for the whitelabel portal
Create new
.scssfile in thecloud-serverrepository, in this directory:app/assets/stylesheets/white-label/[identifier].css.scssClear tmp by using the rake task
Start the
cloud-serverGet all the content from other
.scssfile in the same directoryUpdate all the color code with the one that's provided by the client
Make sure there's no missing asset when accessing the portal
Deploy the new scss file created
Make sure to run the precompile and clear tmp rake task before restarting the cloud-server
3. Create a new Whitelabel Account in Live
This is the same thing that you did with Step 1 but in Live environment, the only difference is that we are using the domain that's provided by the client instead of a temporary domain.
4. Setup SSL (Optional)
Go to GCP Console
Go to
Network Services > Load BalancingClick cloud-server
Click Edit
Click Front End Configuration
Click Add frontend IP and port
Fill in the forms with the following value:
Name: use a dash-separated domain name. Example: portal-libroslighthouse-com
Protocol: HTTPS
IP Version: IPv4
IP Address: Create IP Address
Port: 443
Certificate: Create a new Certificate
Click on Done
Click on Update
When you've completed the SSL Setup you will get a new IP address for the client to point to on their DNS setting
Last updated