enable heroku to serve apidocs

This commit is contained in:
Devin Howard 2016-10-04 16:55:31 +08:00
parent a9831946d0
commit c90460802e

View file

@ -3,6 +3,7 @@ namespace :assets do
task :js_compile do
system 'npm install'
system 'npm run build'
system 'bin/build-apidocs.sh' if ENV['MAILER_DEFAULT_URL'] == 'metamaps.herokuapp.com'
end
end