https://github.com/btholt/azw
Proof-of-concept
https://github.com/btholt/azw
Last synced: 12 months ago
JSON representation
Proof-of-concept
- Host: GitHub
- URL: https://github.com/btholt/azw
- Owner: btholt
- License: other
- Created: 2018-02-20T00:03:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T22:01:08.000Z (about 8 years ago)
- Last Synced: 2025-06-05T23:48:45.109Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# azw
This is a proof of concept and only covers the happy path. This wraps the `az webapp up` command. This has no useful error handling.
## Up and Running.
1. Install [az](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)
1. Install [the webapp extension](https://aka.ms/new-cli)
1. Log in to az by running `az login`
1. Install azw by running `npm install --global azw`
## Use
`azw`
### Node project
This is the only command that works. No flags. No other commands. If azw detects a package.json, it will attempt to deploy your project and run whatever `npm start` says to do. [See here how to set that up](https://docs.npmjs.com/misc/scripts). Make sure you run `npm install` locally since it won't run that in the cloud. If you do not have process.json which is needed for pm2 then it will generate one for you.
### Static project
If you do not have a package.json, it assumes you want to do a static site deploy. This will create a package.json for you, auto-generate a project name, npm install, generate a process.json and then deploy it. It uses the [serve](https://github.com/zeit/serve) to do so which supports deep linking.
## ⚠️ Warning ⚠️
This is a proof concept. It will likely not be maintained. Since its proxying the output from the Python scripts, sometimes the spinner can freak out.