Hi I'm Shristi, so one of my favourite web hosts
Nodejistu, are shutting down and I have a heap of web apps that I need to
find new homes for
so, over the last few weeks I've been looking into
all of the different cloud hosts on the market trying to find the right
fit for some of the apps that I have I'm looking for something that's really light touch
something that I don't need to worry about too much and I stumbled across
Azure, well I've heard about it before but I haven't really used it myself
up until a few weeks ago what I found, what was pretty cool is
Azure have, or Microsoft has a Biz Spark program
so if you're like me if you run a startup you can actually get
on this program, it takes about a week or so to get
approved for it and once you're approved you've got
two or three years of access to
a heap of Microsoft products plus
you get credit monthly credit
to use for Azure, so that's really cool
because it means that you can actually try out proper production
based servers for your app and actually use that as you're growing
a startup or even a side project idea
So I do have one of these accounts and a few weeks ago I actually
hosted an app up on Azure
and it actually has been fine in the time that it's been up which has been pretty cool
so
today I just wanted to just go through a really quick
introduction to what Azure is all about
and how you can host your MEAN Stack, or any Node, or any kind of web app up on Azure.
This one is actually a really good host for someone
who may not be all that comfortable or all that confident using the command
line
because you can pretty much get everything
up and running without using any command line which is a little bit different to
some of the other web hosts we've
looked at in the videos that I've covered so far
without any further ado let's jump in so this is the one app that I've actually
previously created so theres not
too much exciting going on here I just need to jump down and click on the NEW button at the bottom
it selects Compute and Web App for me which is great that's what I want
there's a couple options you can use you can do a quick create
which means there are a couple of other options that you have, but you can set them up later
or we can to go down the custom create which is actually
something that I'm going to do now because it actually lets me set up my continuous
deployment from source control and what
that means is that - say you are working on
your project and you want to
back it up and you're using Git and you want to push that through your source
control. You might be using
GitHub to save that and or you might using be using Bitbucket
or any of those kind of tools what you can do here is hook straight into that
you don't have to push code directly to Azure
you can just push it to GitHub or Bitbucket or
any of those kinda things, and it will just suck it all up and
make that available for you we're going to start off with
a url that's available, I'm just going to see if thats
available there and it's already defaulted
my service plan, my subscription. I don't want a database, if you're using
an SQL database you can select that
for a MeanJS based product I don't need one of those
I'm going to choose this little checkbox down the bottom
which is publish from source control once I've done that just click Next
what that did do by the way, it just added a second page here, so it means that when I click the arrow
it's going to go across to the next
page which is cool, so you can then
identify
or tell this wizard process where your source code is actually
sitting say it's on
like Dropbox you can even grab it straight from there
which is pretty cool. Mine is in Bitbucket, so I'm going to tell it that
that's where it is, and just click on the next button
this is going to authorise with Bithbucket. Because I have an app already
it has already got my details and it's gone ahead and
used those to authenticate
if you're doing this for the first time you will have to obviously put in
your username and password to make sure that your authentication works
I'm just going to select a repo name
for the repo that I want and thats
pretty much it. So fingers crossed and let's see how this goes
the deployment process is actually fairly straightforward like there's only
pretty much what we've just done but so far
I've had a couple of issues with not everything quite working
straight-away I'm just going to see how we go, so
it always makes me a little bit
anxious when things happen so fast cos it feels like something may have
failed somewhere along the line which is why it's so quick so let's have a look
I'm going to just have a quick look at the deployment
information about the deployment I should say
okay so looks like it's still deploying, so it's probably set up the web app
or the base
place to put the app first and now it's going through and actually
and grabbing everything it needs from Bitbucket
and hopefully deploying all of that code
awesome, so once
your deployment is complete
it should show up as active deployment, it should show
some details of your last commit, whatever you did last
It seems to have an issue with the .NET Framework
which is really weird because it's a Microsoft Server!
It's installed all the bower packages
So it seems like the issue is that .NET bit, so let's see if I can do something about that
so it should have the most recent version. What I'm going to do is just restart it
see if there's just a problem with how it has been set up
Try that
Excellent, there we go
so that's my app and it's up and running now. It was a very quick and easy
process if you had an issue in the same way did I did
and just try and restart and see if that fixes it for you
I hope that helped, please subscribe to the channel if you haven't already
check out Bossable.com for more details, let me know the kind of things
that you're working on at the moment
what kind of issues you're having or difficulties or things that are
slowing you down
and let's see if we can work through them together. I'll keep sharing my stories for the
different
things that I'm working on and hopefully that helps you out
as you're going through you
app building situations too. Alright cool, I'll see you again soon!