Update rails, gems, use MathJax over CDN

This commit is contained in:
pfischbeck committed 2019-01-29 22:09:57 +01:00
1 parent 71ffb30880
commit 73d6528c7f
17 files changed
+290 -249

No files matched your search

+4 -2
View File
@@ -1,10 +1,9 @@
#!/usr/bin/env ruby.exe
require 'pathname'
require 'fileutils'
include FileUtils
# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
APP_ROOT = File.expand_path('..', __dir__)
def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
@@ -18,6 +17,9 @@ chdir APP_ROOT do
system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install')
# Install JavaScript dependencies if using Yarn
# system('bin/yarn')
puts "\n== Updating database =="
system! 'bin/rails db:migrate'