meteor-now | Instantly deploy your Meteor apps | Continuous Deployment library
kandi X-RAY | meteor-now Summary
kandi X-RAY | meteor-now Summary
meteor-now is a tool to let you instantly deploy your Meteor apps with one command using ZEIT's now service. Just run meteor-now and instantly deploy your Meteor app like you could back in the good 'ol days of meteor deploy.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of meteor-now
meteor-now Key Features
meteor-now Examples and Code Snippets
npm install -g now@1
meteor-now -e MONGO_URL=mongodb+srv://:@.mongodb.net/test?retryWrites=true
Community Discussions
Trending Discussions on meteor-now
QUESTION
I'm following the Meteor guide and have setup a login system using the following packages: useraccounts:bootstrap
useraccounts:flow-routing
accounts-ui@1.1.9
accounts-password@1.4.0
. When I deploy my app for testing using the meteor-now
command I'm able to register an account and login into my app but after a while of not using the app trying to log back in I get the login forbidden
message and it seems the account I registered does not exist anymore. I cannot find a reason why this would be happening. I'm assuming it has something to do with deploying with meteor-now
since I don't seem to have this issue on my local instance.
ANSWER
Answered 2019-Jan-25 at 23:30On localhost when you developing your application you are connected to the local database. You can set the database connection parameter in an environment variable MONGO_URL
.
Whey you using meteor-now
then your application is deployed. It means that code od application is compiled and installed on Meteor cloud hosting.
The code is transferred but data and configuration no. There are some solutions and you can chode one dependently from what you want to achieve.
1) Connect local instance to the production database. You should set MONGO_URL on the local machine.
Tutorials
2) You should create fixtures. I mean commands that executes when server starting and creating a user in the database if he does not exists.
In your case, I would recommend the second approach.
There is an example of creating a user by fixtures
UPDATE 1
After installing Meteor Now I see these output without any additional configuration
Paragraphs on link
https://github.com/jkrup/meteor-now#user-content-full-deploy-with-mongodb
explains what probably is the reason for data loss. Please tell more about your MONGO_URL settings.
Are you sure that between the moment when you have your data and you lost your data you do not do deploy? In this architecture, any update of code will erase your database.
UPDATE 2In my screenshots, there are errors connected with the incompatibility of meteor-now with now v2.
This is not connected with a database, but maybe partially. Now, v1 is service for Docker images, v2 is for lambda expressions. After downgrade
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install meteor-now
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page