 
 	file
 
-openApp = ->
-	sources = 'index.html'
-
-	options =
-		open:
-			url: appUrl
-
-	gulp
-		.src sources, {cwd: DIST_DIRECTORY, nodir: true}
-		.on 'error', onError
-
-		.pipe open '', options.open
-		.on 'error', onError
-
 startServer = ->
 	browserSync
 		middleware: PROXY_CONFIG.map (config) ->
 			options = url.parse config.url
 			options.route = config.route
 			proxy options
-		open: false
+		open: true
 		port: PORT
 		server: DIST_DIRECTORY
 	, -> firstRun = false


# Open the app in the default browser
gulp.task 'open', ['server'], ->
	openApp()

# Execute Plato complexity analysis
gulp.task 'plato', ['clean:working'], ->

# Start a web server without rebuilding
gulp.task 'serve', ->
	startServer()

# Start a web server
gulp.task 'server', ['build'], ->
