How-to guide

How-to guide

It is important you working with Git correct way in development and production.

 Instructions how to working with Git

  1. Always in development you need to do branch and do not ever working in main branch

  2. When your source code changes is done in your branch you must commit and push changes

  3. After step 2 you need to switch to main branch and merge changes and then merge again and push chnages to main repo in Git

  4. Pull changes to production and if there is changes to database in Laravel migration files then run in i4ware_SDK/saas-app folder php artisan migrate, ect. needed commands

  5. Go to i4ware_SDK/login-form folder and run npm run build on there and upload .htaccess file to i4ware_SDK/login-form/build

RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.html [NC,L] <FilesMatch "\.(jpg|jpeg|png|gif|svg|js|css)$"> FileETag None <IfModule mod_headers.c> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" </IfModule> </FilesMatch>