-
Notifications
You must be signed in to change notification settings - Fork 82
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
iron mup dev --init throws " A Project Already Exists" #206
Comments
Ah, yes. I suspect you created your project with the scaffolding tool. When you do this, it creates your config directories, for dev and production. This automatically creates a 'settings.json' file for you to put meteor settings in to. However, iron mup xxx --init also creates a 'settings.json' file. So mup is reading your current settings.json file as a mup project, simply copy it's contents and delete it. re run the init command, this time you should get a success. now paste in your settings in to the new settings.json file and you are all set :) EDIT: I just tried this with a fresh iron project and was successful in creating a mup project. For good measure, make sure mup and mupx are both installed globally with npm. Looks like you do, from your error log. $ sudo npm install -g mup mupx This bit is purely personal preference- config/development/ config/production/ iron run (local) will automagically run the config/development files. For production, my env variables are stored in the mup.json instead of the env.sh in dev. When i want to deploy, i simply run $ cd /PATH-TO-APP/config/production && mup setup && mup deploy $ cd /PATH-TO-APP/config/production && mup reconfig && mup deploy Like I mentioned earlier, you can access mup however you wish. This is simply my preference and to my experience, offers the most consistent results. |
hi, thanks for your help ! |
Sounds like you didn't include mup in your .iron/config.json, so iron doesn't know what packages to use for mup. The OP has his setup in the opening post, it should work for you. Just replace the dev/prod paths with your own. Also make sure mup is installed globally through npm. Cheers! |
This is actually the part that confuses me, i did add that part. See my .iron/config.json file below "template": { "route": { "mup": { |
Hmm, and you're sure you've installed mup & mupx via npm? |
I had put in this global install command. just did it again with the same result. |
If you run mup by itself you need to be in the directory of the mup.json that you want to use. Dev/Prod/Staging. You need to cd into it. |
thanks for your help, I am going to try that. |
Ok, I got it to work but the env.sh for my given environment got lost in the process. I ended up adding the required environment variables manually in the env.sh used by mup on my server, post deployment, and restarted my app for the variable values to get picked up. thanks so much for your help ! Antoine |
big improvements to mup integration to fix #206
I'm trying to deploy using mup however following the instruction 👍
"mup": {
"version": "mup",
"development": "/config/development",
"production": "/config/production"}
Deploying with mup... -Error: Command failed: /bin/sh -c mup init
A Project Already Exists
Any Idea ?
The text was updated successfully, but these errors were encountered: