Skip to content

Commit f3c5417

Browse files
committed
Merge pull request #17 from opiethehokie/beta7
handle beta7 breaking dnx change
2 parents 376234c + c2f7ef0 commit f3c5417

File tree

5 files changed

+13
-22
lines changed

5 files changed

+13
-22
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.6.0 Sep 10, 2015
2+
- Add support for beta7 apps
3+
14
## v0.5.0 Aug 17, 2015
25

36
- Removed Nowin server, replaced with use of Kestrel which allows the buildpack to run beta4 - beta6 apps.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cloud Foundry buildpack: ASP.NET 5
22

3-
A Cloud Foundry buildpack for ASP.NET 5 applications (tested with [beta6][] applications). For more information about ASP.NET 5 see:
3+
A Cloud Foundry buildpack for ASP.NET 5 applications (tested with [beta7][] applications). For more information about ASP.NET 5 see:
44

55
* https://github.com/aspnet/home
66
* http://docs.asp.net/en/latest/conceptual-overview/aspnet.html
@@ -65,4 +65,4 @@ Open an issue on this project.
6565

6666

6767
[Hello World sample]: https://github.com/IBM-Bluemix/asp.net5-helloworld
68-
[beta6]: https://github.com/aspnet/Home/releases/tag/v1.0.0-beta6
68+
[beta7]: https://github.com/aspnet/Home/releases/tag/v1.0.0-beta7

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.0
1+
0.6.0

lib/buildpack/compile/release_yml_writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def write_yml(ymlPath, web_dir)
4747
f.write <<EOT
4848
---
4949
default_process_types:
50-
web: cd #{web_dir}; sleep 999999 | dnx . #{CFWEB_CMD} --server.urls http://${VCAP_APP_HOST}:${PORT}
50+
web: sleep 999999 | dnx --project #{web_dir} #{CFWEB_CMD} --server.urls http://${VCAP_APP_HOST}:${PORT}
5151
EOT
5252
end
5353
end

spec/buildpack/compile/release_yml_writer_spec.rb

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,8 @@
131131
yml.fetch('default_process_types').fetch('web')
132132
end
133133

134-
it 'changes directory to that directory' do
135-
expect(web_process).to match('cd foo;')
136-
end
137-
138-
it "runs 'dnx . kestrel'" do
139-
expect(web_process).to match('dnx . kestrel')
134+
it "runs 'dnx kestrel'" do
135+
expect(web_process).to match('dnx --project foo kestrel')
140136
end
141137
end
142138
end
@@ -165,12 +161,8 @@
165161
yml.fetch('default_process_types').fetch('web')
166162
end
167163

168-
it 'changes directory to the correct directory' do
169-
expect(web_process).to match('cd src/proj2;')
170-
end
171-
172-
it "runs 'dnx . kestrel'" do
173-
expect(web_process).to match('dnx . kestrel')
164+
it "runs 'dnx kestrel'" do
165+
expect(web_process).to match('dnx --project src/proj2 kestrel')
174166
end
175167
end
176168

@@ -187,12 +179,8 @@
187179
yml.fetch('default_process_types').fetch('web')
188180
end
189181

190-
it 'changes directory to the correct directory' do
191-
expect(web_process).to match('cd .;')
192-
end
193-
194-
it "runs 'dnx . kestrel'" do
195-
expect(web_process).to match('dnx . kestrel')
182+
it "runs 'dnx kestrel'" do
183+
expect(web_process).to match('dnx --project . kestrel')
196184
end
197185
end
198186
end

0 commit comments

Comments
 (0)