mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-30 03:50:13 -05:00
Fix webpack-dev-server on Windows (#4000)
* Fix webpack-dev-server on Windows * Serve webpack from 0.0.0.0, access at 127.0.0.1
This commit is contained in:
parent
59ddf81a45
commit
968354923e
@ -23,7 +23,7 @@ end
|
||||
begin
|
||||
dev_server = YAML.load_file(CONFIG_FILE)["development"]["dev_server"]
|
||||
|
||||
DEV_SERVER_HOST = "http#{"s" if args('--https') || dev_server["https"]}://#{args('--host') || dev_server["host"]}:#{args('--port') || dev_server["port"]}"
|
||||
DEV_SERVER_HOST = "http#{"s" if args('--https') || dev_server["https"]}://#{dev_server["host"]}:#{args('--port') || dev_server["port"]}"
|
||||
|
||||
rescue Errno::ENOENT, NoMethodError
|
||||
puts "Webpack dev_server configuration not found in #{CONFIG_FILE}."
|
||||
|
@ -19,7 +19,7 @@ development:
|
||||
<<: *default
|
||||
|
||||
dev_server:
|
||||
host: 0.0.0.0
|
||||
host: 127.0.0.1
|
||||
port: 8080
|
||||
https: false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user