Skip to content

Instantly share code, notes, and snippets.

@superhighfives
Last active March 2, 2017 18:06
Show Gist options
  • Save superhighfives/bbf0cb4ee3d72dbcba2d03fb3fce5078 to your computer and use it in GitHub Desktop.
Save superhighfives/bbf0cb4ee3d72dbcba2d03fb3fce5078 to your computer and use it in GitHub Desktop.
Rails 5 API + ActiveAdmin + create-react-app on Heroku
{
"name": "list-of-ingredients",
"engines": {
"node": "6.3.1"
},
"scripts": {
"build": "cd client && npm install && npm run build && cd ..",
"deploy": "cp -a client/build/. public/",
"postinstall": "npm run build && npm run deploy && echo 'Client built!'"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment