Versions Compared

Key

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

...

Panel
bgColor#D3D3D3
$ cd c:\program files(x86)\lansa
$ dir .gitignore
$ git init
$ git remote add origin git@github.com:lansa/syd-lansa5-dem.git
$ git add -A
$ git commit -m "Setup initial environment"
$ git push --force --set-upstream origin master
Info

The bold text dir .gitignore must show that the file exists. If it says "File Not Found", do not continue. It is vital that you use the .gitignore file that LANSA ships otherwise the deployment will not work correctly.

If the push fails with "ERROR: Repository not found" then you need to add your SSH key to GitHub as a Collaborator (if you are not the owner of the GitHub account). See Settings\Collaborators in GitHub.

Or, you have used the incorrect github repository address. Type git remote -vv and check that the entire URL matches the repository, including the github user name (which is 'lansa' in this example).

4.   Run Git Extensions to check that the git repository has the approximately correct structure. View the latest commit and click on the File Tree tab. Only the files and directories listed in the following graphic should be present. If not, contact LANSA support:

Image Modified

5.   Check that the GitHub repo also has the same structure:

Image Modified

6.   Configure the IDE so that it knows how to test if your application has been deployed to the Target system and how to execute your application on the Target system.

Run regedit.exe. In this key - HKLM\Software\LANSA\<encoded path>\LANSAPC create this string value: LX_TargetApplicationUrl  and set it to the url of your target system. Something like http://123.123.123.4/app1. It is just the ip address or DNS name that will change for your Target system.