Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.14 KB

File metadata and controls

23 lines (18 loc) · 1.14 KB

Challenge 2: Make binary more accessible

You got the binary rebuilt, great work! However, the app is in kind of a weird place on the filesystem -- there's nothing wrong with apps being under the /opt directory, but there are more common places for it to be found. Plus, those more-common locations tend to be on the system's $PATH variable, which means applications in those directories can be called from anywhere on the system. For example, to run the app you just built if you were in any other directory, you would need to provide the full path, /opt/app/app -- and that can get annoying pretty quick!

The TAD (Technical Architecture Document) spec for your app dictates the following:

  • The app needs to be available under the /usr/local/bin directory

  • Once there, the app there needs to be named run-app, not app

  • To ensure both locations always have the same version (e.g. during hotfixes), make a reference from the binary location to the target location without copying the actual file. This way, any update or change will reflect in both places at once without needing to manually sync them.