Heroku configuration

This commit is contained in:
Senad Uka
2019-06-22 06:39:40 +02:00
parent 857324cdc9
commit 50cfbfede5
5 changed files with 15 additions and 2 deletions

2
.gitignore vendored
View File

@@ -21,3 +21,5 @@
# Ignore master key for decrypting credentials and more.
/config/master.key
node_modules/

2
Procfile.dev Normal file
View File

@@ -0,0 +1,2 @@
web: PORT=3000 yarn --cwd client start
api: PORT=3001 bundle exec rails s

View File

@@ -2,6 +2,7 @@
"name": "client",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:3001",
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",

View File

@@ -7846,7 +7846,7 @@ react-dev-utils@^9.0.1:
strip-ansi "5.2.0"
text-table "0.2.0"
react-dom@16.8.6:
react-dom@^16.8.6:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
@@ -7926,7 +7926,7 @@ react-scripts@3.0.1:
optionalDependencies:
fsevents "2.0.6"
react@16.8.6:
react@^16.8.6:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==

8
lib/tasks/start.rake Normal file
View File

@@ -0,0 +1,8 @@
namespace :start do
task :development do
exec 'heroku local -f Procfile.dev'
end
end
desc 'Start development server'
task :start => 'start:development'