Heroku may not detect a correct buildpack for your JS dependencies, then you have to set it manually:
heroku buildpacks:add heroku/nodejs -i 1
heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-ruby
hanxue-mac:Github hanxue$ git clone https://github.com/AppScale/appscale.wiki.git | |
Cloning into 'appscale.wiki'... | |
remote: Counting objects: 1745, done. | |
remote: Compressing objects: 100% (1733/1733), done. | |
remote: Total 1745 (delta 1089), reused 10 (delta 4) | |
Receiving objects: 100% (1745/1745), 267.93 KiB | 35.00 KiB/s, done. | |
Resolving deltas: 100% (1089/1089), done. | |
Checking connectivity... done | |
hanxue-mac:Github hanxue$ ls appscale.wiki/ | |
.git/ |
require 'prawn' | |
require 'prawn/measurements' | |
# I have a small collection of links to the resources I used to figure all | |
# this out: http://pinboard.in/u:fidothe/t:pdfx | |
module PDFX | |
class PageBox | |
include Prawn::Measurements | |
attr_reader :bleed_mm |
import sinonStubPromise from 'sinon-stub-promise'; | |
import sinon from 'sinon' | |
sinonStubPromise(sinon) | |
let stubedFetch = sinon.stub(window, 'fetch') ) | |
window.fetch.returns(Promise.resolve(mockApiResponse())); | |
function mockApiResponse(body = {}) { |
initialize
: once, when the controller is first instantiatedconnect
: anytime the controller is connected to the DOMinitialize
: once, when the controller is first instantiatedconnect
: anytime the controller is connected to the DOMclass RuboCop::Cop::Security::LinkToBlank < RuboCop::Cop::Cop | |
MSG = 'Specify a `:rel` option containing noopener.'.freeze | |
def_node_matcher :link_to?, <<-PATTERN | |
(send nil? :link_to ...) | |
PATTERN | |
def_node_matcher :blank_target?, <<-PATTERN | |
(pair {(sym :target) (str "target")} (str "_blank")) | |
PATTERN |
image: ruby:2.6 | |
services: | |
- postgres:11-alpine | |
variables: | |
POSTGRES_DB: myorg_test | |
CONTAINER_IMAGE: registry.gitlab.com/myorg/myapp | |
stages: |
#... | |
get '/' do | |
haml :index, layout: false | |
end | |
#... |
#!/bin/sh | |
# Create this file here: ./.git/hooks/pre-commit | |
# chmod +x ./.git/hooks/pre-commit | |
.git/hooks/pre-commit-format-js | |
.git/hooks/pre-commit-format-ruby |