This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "Environment: $RAILS_ENV" | |
# Check if we need to install new gems | |
bundle check || bundle install --jobs 20 --retry 5 | |
# Then run any passed command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "Environment: $RAILS_ENV" | |
# install missing gems | |
bundle check || bundle install --jobs 20 --retry 5 | |
# Remove pre-existing puma/passenger server.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
networks: | |
development: | |
test: | |
volumes: | |
db_data: | |
gem_cache: | |
shared_data: | |
services: | |
restarone_redis: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.6.6-alpine | |
ENV APP_PATH /var/app | |
ENV BUNDLE_VERSION 2.1.4 | |
ENV BUNDLE_PATH /usr/local/bundle/gems | |
ENV TMP_PATH /tmp/ | |
ENV RAILS_LOG_TO_STDOUT true | |
ENV RAILS_PORT 3000 | |
# copy entrypoint scripts and grant execution permissions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= turbo_frame_tag dom_id(tweet) do %> | |
<div class="card m-4"> | |
<div class="card-body"> | |
<%= tweet.content %> | |
</div> | |
<div class="card-footer bg-transparent border-success"> | |
<%= link_to 'Show', tweet, class: 'btn btn-sm btn-primary text-white' %> | |
<%= link_to 'Edit', edit_tweet_path(tweet), class: 'btn btn-sm btn-warning text-white', remote: true %> | |
<%= link_to 'Destroy', tweet, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger text-white' %> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Tweets</h1> | |
<table> | |
<thead> | |
<tr> | |
<th colspan="3"></th> | |
</tr> | |
</thead> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tweet < ApplicationRecord | |
has_rich_text :content | |
after_create_commit {broadcast_prepend_to "tweets"} | |
after_update_commit {broadcast_replace_to "tweets"} | |
after_destroy_commit {broadcast_remove_to "tweets"} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* fix not rendering on chrome/safari */ | |
.react-transform-component { | |
width: unset !important; | |
height: unset !important; | |
} | |
.react-transform-element { | |
width: unset !important; | |
height: unset !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let faker = require('faker'); | |
export const todoList = () => { | |
let columnCount = 12 | |
let maxBlocksPerColumn = 12 | |
let layout = [] | |
let i = 0 | |
const cardWidth = 3 | |
const cardHeight = 8 | |
const inlineYaxis = 1 |