The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.
This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)
Make sure you have the latest version of XCode installed. Available from the Mac App Store.
Install the Xcode Command Line Tools:
xcode-select --install
exports.config = { | |
// See http://brunch.io/#documentation for docs. | |
files: { | |
javascripts: { | |
joinTo: "js/app.js" | |
// To use a separate vendor.js bundle, specify two files path | |
// http://brunch.io/docs/config#-files- | |
// joinTo: { | |
// "js/app.js": /^js/, |
// Default folder structure: | |
// dev/{*.html's,/js,/scss,/img} | |
// build/{*.html's,/js,/css,/img} | |
// Gulp.js configuration | |
var | |
// modules | |
gulp = require('gulp'), |
<!-- Plugins: are for a workflow involving | |
HTML/CSS/JS/Ruby/Rails/Python/Elixir/Phoenix | |
As well as making things look good. --> | |
Ayu | |
Auto Rename Tag | |
Bracket Pair Colorizer | |
Code Spell Checker | |
Color Highlight | |
ElixirLS |
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
ruby '2.5.0' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '~> 5.2.0.rc1' | |
# Use postgresql as the database for Active Record | |
gem 'pg', '>= 0.18', '< 2.0' | |
# Use Puma as the app server |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
Alright, because there is nothing online that I could find showing people how to do this, I decided to record it myself so I could get back to this later.
Generate the new rails app
$rails new <app_name> --webpack=stimulus --skip-sprockets -T --database=postgresql