-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ASP.NET #1287
Merged
Merged
Fix ASP.NET #1287
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fa84ef7
Install mono and xsp from official packages
pdonald 7472757
Update ASP.NET dependencies
pdonald b0b6529
Fix nginx for ASP.NET
pdonald 9a1c67c
Upgrade to ASP.NET MVC 5.2.2
pdonald da542e8
Install mono from snapshot packages and fix nginx
pdonald fec6a0c
Travis was using old mono
pdonald 42029a7
Try to fix mono install from snapshots
pdonald 0037eca
Don't trim response in travis logs
pdonald d669d92
Fix setup_nginx for ASP.NET
pdonald d1bd788
Trim response
pdonald 8a79781
Remove meta charset from fortunes in ASP.NET
pdonald 197d492
Remove bash_profile.sh from ASP.NET
pdonald 85169bc
Refactor ASP.NET msbuild
pdonald 04ae558
Install mono from snapshot packages without sudo
pdonald 9e68ea0
Fix mono install
pdonald 8fc98a5
Debug travis mono ssl
pdonald 03ef821
Debug travis mono ssl
pdonald 15f0ddc
Do we need certmgr?
pdonald File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,6 @@ script: | |
|
||
cache: | ||
directories: | ||
- installs/mono-3.2.8 | ||
- installs/py2 | ||
- installs/py3 | ||
- installs/perl-5.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
*.suo | ||
*/bin/* | ||
*/obj/* | ||
lib/* | ||
!lib/.nuget | ||
*/packages/* | ||
nginx.upstream.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# mono environment variables | ||
. ${IROOT}/mono.installed | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clever! |
||
|
||
export NGINX_HOME=${IROOT}/nginx | ||
|
||
sed -i 's|localhost|'"$DBHOST"'|g' src/Web.config | ||
|
||
# build | ||
rm -rf bin obj | ||
cd src | ||
$MONO_ROOT/bin/xbuild /p:Configuration=Release | ||
# extra cleaning | ||
rm -rf src/bin src/obj | ||
rm -rf /tmp/nuget | ||
|
||
xbuild src/Benchmarks.build.proj /t:Clean | ||
xbuild src/Benchmarks.build.proj /t:Build | ||
|
||
# one fastcgi instance for each thread | ||
# load balanced by nginx | ||
port_start=9001 | ||
port_end=$(($port_start+$MAX_THREADS)) | ||
|
||
# nginx | ||
conf="upstream mono {\n" | ||
current=9001 | ||
end=$(($current+$MAX_THREADS)) | ||
while [ $current -lt $end ]; do | ||
conf+="\tserver 127.0.0.1:${current};\n" | ||
let current=current+1 | ||
for port in $(seq $port_start $port_end); do | ||
conf+="\tserver 127.0.0.1:${port};\n" | ||
done | ||
conf+="}" | ||
echo -e $conf > $TROOT/nginx.upstream.conf | ||
|
||
$NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf -g "${MAX_THREADS}" | ||
$NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf -g "worker_processes ${MAX_THREADS};" | ||
|
||
# Start fastcgi for each thread | ||
# To debug, use --printlog --verbose --loglevels=All | ||
current=9001 | ||
end=$(($current+$MAX_THREADS)) | ||
while [ $current -lt $end ]; do | ||
MONO_OPTIONS=--gc=sgen fastcgi-mono-server4 --applications=/:$(pwd)/src --socket=tcp:127.0.0.1:$current | ||
let current=current+1 | ||
for port in $(seq $port_start $port_end); do | ||
fastcgi-mono-server4 --applications=/:${TROOT}/src --socket=tcp:127.0.0.1:$port & | ||
done |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you wish to clean this up a little, a number of
setup.sh
files are doing this