Skip to content

Instantly share code, notes, and snippets.

@superhighfives
Last active March 4, 2017 14:35
Show Gist options
  • Save superhighfives/1ca3d23c4d3af93e1a6ed835987e6ddb to your computer and use it in GitHub Desktop.
Save superhighfives/1ca3d23c4d3af93e1a6ed835987e6ddb to your computer and use it in GitHub Desktop.
Rails 5 API + ActiveAdmin + create-react-app on Heroku
namespace :start do
task :development do
exec 'foreman start -f Procfile.dev'
end
desc 'Start production server'
task :production do
exec 'NPM_CONFIG_PRODUCTION=true npm run postinstall && foreman start'
end
end
desc 'Start development server'
task :start => 'start:development'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment