MVCWeather
1.0.0
一個乾淨、現代化的網站,提供當前天氣和預報。我花了大約一周的時間構建了這個程序,以便透過 .net core 在 Linux 上試驗 asp.net。我還想專注於設計元素,以獲得乾淨的外觀和感覺。
很快..
vagrant up
vagrant ssh
cd /MVCWeather
dotnet restore src/MVCWeather
dotnet restore test/MVCWeather.Tests
dotnet build src/MVCWeather --no-incremental
dotnet build test/MVCWeather.Tests --no-incremental
dotnet test test/MVCWeather.Tests
先決條件:記憶體緩存
docker pull memcached
docker run --name something-memcached -d memcached
運行容器
docker build -t tsears/weather ./
docker run -i -t --env-file .env.list -p 127.0.0.1:5000:5000 --link something-memcached:memcache tsears/weather