Last active
March 4, 2017 14:35
-
-
Save superhighfives/1ca3d23c4d3af93e1a6ed835987e6ddb to your computer and use it in GitHub Desktop.
Rails 5 API + ActiveAdmin + create-react-app on Heroku
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
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