Skip to content

Instantly share code, notes, and snippets.

View mwlang's full-sized avatar

Michael Lang mwlang

View GitHub Profile
ITEM_BASIS_PRICE_POPULATE_COLUMNS = [
:publisher_id,
:imprint_id,
:item_id,
:data_src_code,
:item_expected_discount,
:item_preferred_profit,
:item_net_price,
:item_net_price_cc,
:item_basis_price,
app.js?id=826ae638108a25af5178:12384 Uncaught ReferenceError: $ is not defined
at Object../src/js/charts/market_charts.js (app.js?id=826ae638108a25af5178:12384)
at __webpack_require__ (app.js?id=826ae638108a25af5178:20)
at Module../src/js/app.js (app.js?id=826ae638108a25af5178:12252)
at __webpack_require__ (app.js?id=826ae638108a25af5178:20)
at Object.0 (app.js?id=826ae638108a25af5178:12402)
at __webpack_require__ (app.js?id=826ae638108a25af5178:20)
at app.js?id=826ae638108a25af5178:84
at app.js?id=826ae638108a25af5178:87
class Errors::Show < Lucky::ErrorAction
def handle_error(error : JSON::ParseException)
message = "There was a problem parsing the JSON." +
" Please check that it is formed correctly"
if json?
json Errors::ShowSerializer.new(message), status: 400
else
render_error_page status: 500
end
05:51:54 web.1 | GET /redis
05:51:54 web.1 | ▸ Handled by Redis::Index
05:51:54 web.1 | ▸ Ran protect_from_forgery
05:51:54 web.1 | ▸ Ran test_backdoor
05:51:54 web.1 | ▸ Stopped by require_sign_in
05:51:54 web.1 | ▸ Sent 302 (210.0µs)
05:51:54 web.1 | GET /sign_in
05:51:54 web.1 | ▸ Handled by SignIns::New
05:51:54 web.1 | ▸ Ran protect_from_forgery
05:51:54 web.1 | ▸ Ran test_backdoor
@mwlang
mwlang / .dockerignore
Created July 7, 2019 01:37
Docker files for bringing up a LuckyFramework app ... Some of this is redundant.
.git
.dockerignore
bin/
lib/
spec/
FROM crystallang/crystal:0.29.0 as system
RUN apt-get update && \
apt-get install -y libnss3 libgconf-2-4 chromium-browser build-essential curl libreadline-dev libevent-dev libssl-dev libxml2-dev libyaml-dev libgmp-dev git golang-go postgresql postgresql-contrib locales && \
# Set up node and yarn
curl --silent --location https://deb.nodesource.com/setup_11.x | bash - && \
apt-get install -y nodejs && \
npm install -g yarn && \
# Lucky cli
git clone https://github.com/luckyframework/lucky_cli --branch master --depth 1 /usr/local/lucky_cli && \
version: '3'
services:
db:
container_name: maestro_db
image: postgres:11.3
environment:
- POSTGRES_DB=maestro
- POSTGRES_USER=lucky
- POSTGRES_PASSWORD=developer
FROM crystallang/crystal:latest
WORKDIR /app
COPY shard.* /app/
RUN shards install
COPY . /app
RUN crystal build src/maestro.cr -o /app/bin/maestro --release
RUN rm -rf /app/node_modules
FROM crystallang/crystal:latest
WORKDIR /app
ADD . /app/
CMD crystal build src/hello.cr -o bin/hello --release
FROM crystallang/crystal:latest
WORKDIR /app
COPY shard.* /app/
RUN shards install
COPY . /app
RUN crystal build src/maestro.cr -o ./bin/maestro --release
RUN rm -rf /app/node_modules