All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
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
.git | |
.gitignore | |
/doc | |
.yardoc | |
coverage | |
jsdoc | |
/tmp | |
/log | |
Dockerfile | |
Dockerfile.prod |
This guide explains the way to setup a production server using Capistrano.
- Capistrano is a development gem which assist the developer to run commands on the production server (something like a Heroku toolbelt)
- Hence, it is installed and configured on developer's computer
# Gemfile
# Use Capistrano for deployment
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
alias rg="rails g" | |
alias rs="rails s" | |
alias rc="rails c" | |
alias rd="rails d" | |
alias brg="bin/rails g" | |
alias brs="bin/rails s" | |
alias brc="bin/rails c" | |
alias brd="bin/rails d" | |
alias gcd='git checkout develop' |
Make it a point to be able to use the keyboard as much as you can. In OS X the spotlight is great for this. By default the spotlight hotkey is Cmd+Space
. Make it a point to try and always use iTerm in fullscreen. Remember that your tmux prefix is set to Ctrl+z
- Open iTerm with spotlight with
Cmd+Space
search iTerm and open with Enter - Fullscreen iTerm with
Cmd+Enter
- Pop out of iTerm with the hotkey you added
Ctrl+Enter
- Pop back into iTerm with
Ctrl+Enter
again - Nagivate to your intended project directory
- Check for running tmux sessions with
tmux ls
(Failed to connect to server just means no tmux sessions yet)
- 使用者可以登入 / 登出
- 使用者可以使用 Facebook 登入 https://github.com/xdite/auto-facebook
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
# DOCKER-VERSION 0.4.8 | |
# am facing issue | |
# https://github.com/dotcloud/docker/issues/1123 | |
FROM ubuntu:12.04 | |
MAINTAINER Deepak Kannan "[email protected]" | |
RUN apt-get -y install python-software-properties |
NewerOlder