Skip to content

Commit

Permalink
Rakefile: aot run
Browse files Browse the repository at this point in the history
  • Loading branch information
shenfeng committed Jul 4, 2012
1 parent ff6966e commit f079b16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ namespace :run do
sh 'rm classes -rf && lein javac && scripts/run --profile dev'
end

desc "Compile and run"
task :aot do
sh 'scripts/aot-run'
end

desc "Run server in production profile"
task :prod => :prepare_prod do
sh 'rm classes -rf && lein javac && scripts/run --profile prod --static-server //s.rss-miner.com --proxy-server //p.rss-miner.com'
Expand Down
6 changes: 4 additions & 2 deletions scripts/aot-run
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ java -Dsun.jnu.encoding=UTF-8 \
-Dfile.encoding=UTF-8 \
-Dsun.net.inetaddr.ttl=0 \
-Djava.net.preferIPv4Stack=true \
-Xmx256m -Xms256m \
-Xmx150m -Xms150m \
-cp rssminer.jar:lib/* rssminer.main \
--index-path /var/rssminer/index \
--static-server //s.rss-miner.com \
--proxy-server //p.rss-miner.com \
--profile prod \
--worker 4 \
--worker 2 \
--port 9090 \

0 comments on commit f079b16

Please sign in to comment.