christopheranderson / azure-demeteorizer

CLI tool for deploying demeteorized meteor apps on Azure App Service.
MIT License
26 stars 8 forks source link

Having trouble deploying to the web app #22

Closed DanceParty closed 8 years ago

DanceParty commented 8 years ago

I successfully build/install/zip but when I go to run

azure-demeteorizer deploy -s [sitename] -u [username] - p [password]

I am running into an issue. Currently, as shown below it does not give any warnings:

image

However, when I navigate to my web app's url, it still displays the default "Hello world" page.

Some additional information: Sitename: I am using the name I created for my web app (not sure if case-sensitive). I am not using a url

Username: I am using my username that was created through the deployment credentials and appending my sitename to the beginning of it [sitename]\[username]:

Password: I am just typing my password that I created in the deployment credentials area.

image

EDIT: I have also tried resetting the deployment credentials multiple times with no luck as well as disconnecting and reconnecting local git repository.

ramijarrar commented 8 years ago

You don't need to append your site name to the beginning of username. And get rid of that space in - p.

Going forward, you can make sure the deploy command worked by opening your site in {sitename}.scm.azurewebsites.net and using the 'Debug console' to check the contents of wwwroot (which should contain your app). If that is okay, I would look for errors in the server logs.

DanceParty commented 8 years ago

Oops, must've mistyped that space in the -p.

Inside of my wwwroot folder is my app (within a folder called programs/server) but for some reason the web app defaults to the server.js file that came on the web app when I created it.

ramijarrar commented 8 years ago

Okay, you should be aware that for the time-being you need to use the --clean option before redeploying or manually empty out the wwwroot folder.

DanceParty commented 8 years ago

so that would look like azure-demeteorizer deploy -s [sitename] -u [username] - p [password] --clean?

ramijarrar commented 8 years ago

Correct, but make sure to use the dev branch:

npm install -g christopheranderson/azure-demeteorizer#dev

ramijarrar commented 8 years ago

And stop your app before deploying with that command.

DanceParty commented 8 years ago

Alright I will give that a shot. Thanks for the help so far!

DanceParty commented 8 years ago

Alright this is what I am getting with the azure-demeteorizer deploy -s [sitename] -u [username] - p [password] --clean command

image

DanceParty commented 8 years ago

I am running --loglevel silly now

DanceParty commented 8 years ago

so when I ran that, I am getting a long error that essentially saying file name must be less than 260 characters and that the path is too long

ramijarrar commented 8 years ago

It's a known issue for 1.3.x apps, you'll need to either downgrade to 1.2.x or wait for Git-based deployments in #9 which should be implemented soon.

DanceParty commented 8 years ago

Alright I will try downgrading until that comes out then. Thanks for the help!

Just to clarify. You can downgrade by running meteor create myapp --release 1.2.1?

DanceParty commented 8 years ago

So i created a new app through Meteor 1.2.1 and it ran fine out of the box on the Azure WebApp Services. Then I re-downloaded all of the packages that I was using in my previous application and then transferred all of the code over and am now getting an error during deployment that says

An error has occurred. Exception Message: The process cannot access the file \\wwwroot\\programs\\server\\node_modules\\fibers\\bin\\...\\fibers.node because it is being used by another process

Any suggestions?

DanceParty commented 8 years ago

Update: I thought I had already stopped my WebApp but I was checking the wrong one. Stopping it solved the problem. Thanks!