Skip to content

Instantly share code, notes, and snippets.

@yuyasat
yuyasat / 10_yarn.config
Created May 23, 2018 01:41
install yarn in ElasticBeanstalk
files:
# If this file is edited, it must be removed from EC2 instance prior to deploy.
"/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn_install.sh" :
mode: "000775"
owner: root
group: users
content: |
#!/usr/bin/env bash
set -xe
@yuyasat
yuyasat / 01_nginx.conf
Last active May 9, 2021 04:27
ElasticBeanstalk(ALB, Rails)でのconf
files:
/etc/nginx/conf.d/redirect.conf:
mode: "000644"
owner: root
group: root
content: |
server {
listen 81;
rewrite ^ https://$host$request_uri permanent;
}
@yuyasat
yuyasat / Actress
Last active January 14, 2019 03:23
Rails における内部結合、外部結合まとめ ref: https://qiita.com/yuyasat/items/c2ad37b5a24a58ee3d30
class Actress < ApplicationRecord
has_many :movies
end