Remove ROOT_DIR env var requirement
It was only used for generating templates and was PWDinalltheusecaseswecouldfind.PreferringtousePWD implicitly and directly now.
[#169965323]
Signed-off-by: Bryan Tong btong@pivotal.io
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
go-fetcher
This repository contains code for a
go getrouting service which allows packages from multiple locations to appear to be centralized in one location. This also allows the packages to be moved to other locations without breaking imports.Development
First, be sure you install Go. Then clone the repository:
We are using Ginkgo to run tests. You may use the
run_specscommand:Some environment variables and configuration are required to run. For local testing, you may use the
run_localcommand and point your browser to localhost:8800:We are using counterfeiter to generate fakes. If you are changing interfaces, you can rebuild fakes with the following:
Configuration
See the following for an example of what configuration should look like:
go-fetcherservice (ex: example.com).go getcompatible sites that are searched in order.Deploying to Cloud Foundry
Deploying to Cloud Foundry is straight forward, but requires you to do so from the checked out repository so that
cfcan recognize and upload the package. You will need to create amanifest.ymlto accompany yourconfig.json:Then, login to your cf instance and push the application: