By default RAILS_RELATIVE_URL_ROOT
is used only for asset pipeline.
To namespace your rails routes you need to wrap run MyApp::Application
with map
in your config.ru:
map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"strconv" | |
"time" | |
) | |
type CustomTime struct { |
#!/bin/bash | |
#cut/join videos using ffmpeg without quality loss | |
if [ "$(uname)" == "Darwin" ]; then | |
if ! [ -x "$(command -v brew)" ]; then | |
echo 'homebrew is not installed.' | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
if ! [ -x "$(command -v ffmpeg)" ]; then | |
echo 'ffmpeg is not installed.' |