This is an updated version of Quickstart: Compose and Rails from Docker docs. Updates are mostly about using Rails 6 and webpacker.
First, create a directory for the new app:
mkdir myapp; cd myappFill in the Dockerfile:
FROM ruby:2.7
| #!/bin/bash | |
| # from app $1 to local database $2 | |
| # | |
| # Place this in your /usr/local/bin folder and add execution privelages | |
| # Example usage: | |
| # replace_with_production_db my_app_name my_app_database_dev | |
| echo “Downloading database from $1...” | |
| curl -o latest_db.dump `heroku pg:backups public-url --app $1` | |
| echo “Dropping database $2...” |
| " maclunar's .vimrc file | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| set shell=/bin/sh | |
| " use vim-plug | |
| call plug#begin() | |
| Plug 'ctrlpvim/ctrlp.vim' " fuzzy file search | |
| Plug 'rking/ag.vim' " silver searcher search | |
| Plug 'tpope/vim-fugitive' " git stuff |
| # Load the default .profile | |
| [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" | |
| # Load RVM into a shell session *as a function* | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
| # For RVM and nvm | |
| if [ -d "$HOME/Code" ] ; then | |
| export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" |
| [pull] | |
| rebase = true | |
| [user] | |
| name = Maciej Wilk | |
| email = maclunar@gmail.com | |
| [alias] | |
| aa = add --all | |
| di = diff | |
| dc = diff --cached |
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": true, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
| (defun dotspacemacs/user-config () | |
| "Configuration function for user code. | |
| This function is called at the very end of Spacemacs initialization after | |
| layers configuration. | |
| This is the place where most of your configurations should be done. Unless it is | |
| explicitly specified that a variable should be set before a package is loaded, | |
| you should place your code here." | |
| ;; I need my Polish characters | |
| (setq mac-right-option-modifier nil) | |
| ) |
| " maclunar's .vimrc file | |
| " now more of a init.vim file | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| set shell=/bin/sh | |
| " ------------------------------------------------------------------------------ | |
| " vim-plug | |
| " ------------------------------------------------------------------------------ | |
| call plug#begin() |
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
This is an updated version of Quickstart: Compose and Rails from Docker docs. Updates are mostly about using Rails 6 and webpacker.
First, create a directory for the new app:
mkdir myapp; cd myappFill in the Dockerfile:
FROM ruby:2.7
Base on this guide: