# Build rarely changed system libraries
FROM phusion/passenger-ruby27:1.0.16 AS builder
ENV RAILS_ENV=${RAILS_ENV:-production}
ENV NODE_ENV=${RAILS_ENV:-production}
ENV RACK_ENV=${RAILS_ENV:-production}
ENV PASSENGER_APP_ENV=${RAILS_ENV:-production}
This file contains 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
vi: | |
devise: | |
confirmations: | |
confirmed: Xác nhận tài khoản thành công! | |
send_instructions: Bạn sẽ nhận được email hướng dẫn xác nhận tài khoản trong vài phút nữa. | |
send_paranoid_instructions: Nếu email của bạn có trong hệ thống, bạn sẽ nhận được email hướng dẫn xác nhận tài khoản trong một vài phút nữa. | |
failure: | |
already_authenticated: Bạn đã đăng nhập. | |
inactive: Tài khoản của bạn chưa được kích hoạt. | |
invalid: "%{authentication_keys} hoặc mật khẩu không hợp lệ." |
This file contains 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
" Install Vim | |
" sudo apt-get install vim | |
" Install Vundle | |
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" $ vim | |
" $ :PluginInstall | |
set shell=/bin/bash | |
set nocompatible | |
set encoding=utf-8 | |
set fileencodings=urf-8 |
For VM instance, it's essential that:
- Before a VM instance can be created,
compute
API should be enabledgcloud services enable compute.googleapis.com
zone
andmachine-type
are required in order to create a VM instance- Metadata can be passed to the instance by using
--metadata={{ attribute name }}={{ attribute value }}
which then can be retrieved bycurl -H "Metadata-Flavor: Google" http://http://metadata.google.internal/computeMetadata/v1/instance/attributes/{{ attribute name }}
while inside the instance. - To set startup script of a VM instance from a file
--metadata-from-file startup-script={{ Relative path to the startup script }}
. But, do remember,startup-script
is just an attribute so we can also do--metadata startup-script='...'
.startup-script
can be read bycurl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/startup-script
- For the VM instance to be able to use any GCP services, it needs to have the
var Trix = require("trix")
require("@rails/actiontext")
Trix.config.blockAttributes.heading2 = {
tagName: 'h2',
terminal: true,
breakOnReturn: true,
group: false
}
This file contains 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
# In deploy.rb | |
# require_relative '../lib/mina/local_assets/tasks' | |
# ... | |
# task :deploy do | |
# # uncomment this line to make sure you pushed your local branch to the remote origin | |
# # invoke :'git:ensure_pushed' | |
# invoke :'local_assets:clobber' | |
# invoke :'local_assets:precompile' | |
# invoke :'local_assets:sync_to_remote_tmp' | |
# docker/webapp/Dockerfile
FROM ruby:2.6.6
SHELL ["/bin/bash", "-c"]
RUN apt-get update -qq && apt-get install -y postgresql-client memcached tzdata nano
# Install node 12, yarn
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
This file contains 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
Name: Flash | |
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
Thank you! |
NewerOlder