-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Add heroku deployment guide #3777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
So, how is the "easiest way"? I mean, how to deploy to heroku using vue-cli? |
@aislanmaia see insturcitons in https://github.com/vuejs/vue-cli/pull/3777/files I just deployed a fresh vue-cli app to heroku, without needing to add any other packages like other pull requests do – that's why I claim this is the easiest. It also handles SPA correctly and serves @sodatea whom should I bother to review this PR? |
Oh man.. many thanks for the instructions. I was right now trying to deploy with vue-cli but got error into the heroku app without the |
@zigomir what you put in the start script into Here is my scripts:
|
@aislanmaia I think that adding |
I have tested it out. It works with the buildpacks. But I have ditched Heroku because I'm using Cloudinary service to my images processing, and whatever you want, Heroku forces you to install addons. I'm using now firebase hosting that works straight forward with the libs my static frontend is using. |
@zigomir thank you for creating this PR! However, it missed a step for Heroku CLI installation. Would you mind to add it to the guide? |
Also split instructions into steps
@NataliaTepluhina done. I just added a link as heroku has different installers for each platform. |
@zigomir tested it and it looks like definitely the easiest way to deploy to Heroku. Left one minor suggestion, as soon as it's resolved I will merge. |
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com>
@NataliaTepluhina thanks, done! |
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com>
Hey @zigomir, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚 |
* Add heroku deployment description * Link to heroku CLI article Also split instructions into steps * Use heroku org buildpack link Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com> * Update docs/guide/deployment.md Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com> (cherry picked from commit 323acc9)
When deploying to heroku I keep running into the error " I was able to get the app running properly by adding a start script to package.json
|
@neillsom are you using both buildpacks mentioned in this PR?
|
My mistake! I had github auto-deploying, so the heroku commands I was running from the command line were for the wrong remote 🤦 Thanks for helping me track it down |
I see there are many other guides for heroku proposed:
But all of them include some sort of node server which isn't really required with
heroku-buildpack-static
buildpack.I'd argue that, this is the easiest and most straightforward way to deploy vue-cli app to heroku ;)