I have a Meteor app ready to deploy. If I bundle it as such:
meteor build ../output --debug
and then deploy it, it works fine. However, when I run:
meteor build ../output
and then deploy it, it loads up however has a template error in the console. I don't know how to debug this, as all of the code is now minified.
Not sure the best approach to figuring this out!
Related
I am trying to deploy a NextJs application to Vercel.
I followed steps in this tutorial: https://vercel.com/guides/nextjs-prisma-postgres and the deploy with that app works but with my new app doesn't.
On localhost my application runs just fine but when I'm trying to deploy on Vercel the deploy fails with message Deployment failed with error.
I'm trying to get the logs, to see why the deploy failed but I can't click on the Building part of the screen where I could see the build logs.
Picture of Vercel after Deploy failed:
My question is how could I see the logs if the Vercel deploy fails at first try?
I had the same problem. I couldn't deploy my app in Vercel and none error showed on the console. So, I run the npm run build locally and there it showed me some typescript errors that don't appear in any other place. After I solved those errors I could deploy my app in Vercel without problems.
I looked into it further, and to get some error information I used the vercel cli (https://vercel.com/docs/concepts/deployments/overview) instead of gui.
Hope this helps you to.
I do have Meteor installed on my Heroku app. Due to some vulnerabilities concern Heroku is asking me to update Node.js version which is possible by updating the Meteor version as directed here
But how would I run the update on my heroku.
Currently I'm using command:
heroku run meteor update --release 1.5.1 -a myappname
I think you need to go to your Meteor project (repo) with your code editor, do the update, make sure everything runs ok on "local". A good opportunity to run "npm outdated" too and see if there is anything to do in that area, then push to production.
I am pretty sure you should not update Meteor via Heroku CLI or command line.
The solution to update Meteor and Node version for Heroku aplication is given below:
Update Node version for Meteor app deployed to Heroku
I want to use meteor up to deploy my app to the server.
But when I deploy it, I can't find the apk file (usually when you build the app locally, it is located in the same folder as the bundle)
Is there a way to automatically generate the apk file with meteor up? or should I build it locally and point it to the deployment server?
Meteor up wont build your apk by default. You will have to do this yourself.
I have upgraded 2 meteor apps to 0.9.3. Now, when attempting to deploy the apps to meteor.com the app is appearing to not deploy and hang. For example, here is what is displayed:
$ meteor deploy myapp.meteor.com
$ [blinking cursor here]
Note that the myapp is substituted with my actual app name. Any ideas?
Here's a workaround I found:
Downgrade to 0.9.1
Deploy
Login with your developer account when it asks
Upgrade again to 0.9.3
Deploy
I think Meteor was failing to show the login prompt for whatever reason.
Here is what I did to solve the issue.
Deleted the local directories with the meteor apps.
Pulled fresh copies of the apps from my github repos.
Opened the apps via the terminal and was able to publish.
I am sure that there was something deeper that was the issue, but this solved it.
I had the same issue but it was solved when i loged into my meteor account using $ meteor login
I created a meteor app which works fine on my localhost.
I recently just deployed my app to meteors server for testing and each time I visit the app I get a page with the text
This site is down. Try again later.
When I deploy I type:
meteor deploy [app-name]
It deploys successfully but when I actually visit the site, it says it is down.
I’ve tried the following:
Deleting the deployed app and re-uploading, but I experience the same error.
Deploying a brand new meteor app, still says same site is down error.
Deleting the app, reseting my local database with meteor reset, and redeploying. Same error.
Can I do something to fix this, or is this an error with Meteor's servers?
--------------------UPDATE-----------------------
The site is not showing because it is crashing. Using Meteor logs [app-name] I was able to find out that it was crashing because it cannot find module async.
I have my meteor project setup for NPM integration. I used npm install async and use
async = Meteor.require('async')
But I think the issue is with my package.json file.
Here is my current package.json
{
"async": "0.9.0"
}
Is meteor not able to install async on the server because this package.json file is incorrect? Everything works on my localhost but I used npm install async specifically.
----------------------------UPDATE 2-----------------------
I fixed it with the help of this thread:
How can I deploy node modules in a Meteor app on meteor.com?
You have to be a bit careful with NPM modules. meteor deploy doesn't support binary npm or installing npm modules via npm install from a package.json.
This may be what is causing you issues. Unfortunately, there isn't a way passed this. You could use your own server via DigitalOcean or AWS to get passed this.