Add log render nothing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class DashboardController < ApplicationController
|
||||
class DashboardController < ApplicationController
|
||||
layout 'theme1'
|
||||
before_action :allow_all_origins, only: :error_report
|
||||
|
||||
@@ -10,6 +10,7 @@ class DashboardController < ApplicationController
|
||||
log = UserAppLog.new(params: params[:log])
|
||||
log.user = current_user
|
||||
log.save
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def close_window
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
puts "Cleaning tmp"
|
||||
`rm -rf tmp/*`
|
||||
|
||||
|
||||
puts "Cleaning log"
|
||||
`rm -rf log/*`
|
||||
|
||||
puts "Removing coverage"
|
||||
`rm -rf coverage`
|
||||
+12183
File diff suppressed because it is too large
Load Diff
+23179
File diff suppressed because one or more lines are too long
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in 5984 8080 9292; do
|
||||
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
|
||||
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
|
||||
done
|
||||
|
||||
for i in {3000..3100}; do
|
||||
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
|
||||
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
|
||||
done
|
||||
|
||||
for i in {49000..49003}; do
|
||||
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
|
||||
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
|
||||
done
|
||||
|
||||
# vm must be powered off
|
||||
#for i in 5984 8080 9292; do
|
||||
# VBoxManage modifyvm "boot2docker-vm" --natpf1 delete "tcp-port$i";
|
||||
# VBoxManage modifyvm "boot2docker-vm" --natpf1 delete "udp-port$i";
|
||||
#done
|
||||
#
|
||||
#for i in {3000..3100}; do
|
||||
# VBoxManage modifyvm "boot2docker-vm" --natpf1 delete "tcp-port$i";
|
||||
# VBoxManage modifyvm "boot2docker-vm" --natpf1 delete "udp-port$i";
|
||||
#done
|
||||
#
|
||||
#for i in {49000..49003}; do
|
||||
# VBoxManage modifyvm "boot2docker-vm" --natpf1 delete "tcp-port$i";
|
||||
# VBoxManage modifyvm "boot2docker-vm" --natpf1 delete "udp-port$i";
|
||||
#done
|
||||
@@ -0,0 +1,3 @@
|
||||
run Proc.new { |env|
|
||||
[200, {'Content-Type' => 'text/html'}, ["Hello world"]]
|
||||
}
|
||||
Reference in New Issue
Block a user