create app on heroku heroku create name-api --remote name-api heroku create name-web --remote name-web heroku ps:scale web=1 --remote name-api heroku ps:scale web=1 --remote name-web first push with refs git push name-api `git subtree split --prefix api master`:refs/heads/master --force git push name-web `git subtree split --prefix web master`:refs/heads/master --force then you can run without it git push name-web `git subtree split --prefix web master`:master --force git push name-api `git subtree split --prefix api master`:master --force run commands with flag heroku run rake db:seed --app name-api