Closed
Description
What problem does this feature solve?
Documentation about deployment on Heroku
What does the proposed API look like?
This script should work, though it does require heroku cli utility to be present, account being logged in and an app already existing.
This was used as a source of information on how to deploy static web: https://gist.github.com/wh1tney/2ad13aa5fbdd83f6a489
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run build
# navigate into the build output directory
cd dist
# Create Heroku specific files for deployment
# Could also use Procfile to clearly define what should be used
echo '{}' > composer.json
echo '<?php include_once("home.html"); ?>' > index.php
git init
git add -A
git commit -m 'Deploy'
heroku git:remote --app {APP-NAME}
git push -f heroku master
cd -