I've seen quite a few people posting on here with issues in deploying and even ran into a couple myself -- so hopefully this tutorial will help us all get launched and ready to go for Unit 2. :)
Note: This tutorial assumes that you've already registered an account for Google App Engines and have installed the related program -- we'll be showing how to navigate a few options here.
Deploying your application from your local machine to the Internet is as simple as hitting the blue 'Deploy' icon in Google App Engine's toolbar, but without knowing how to set things up first that could be quite a pain! For example, you could see an error like this...
...when attempting to deploy. What could be causing this?
1) Create An Application
When attempting to first create an application, you're asked to specify two values -- an Application Identifier and an Application Title. The Application Identifier is tied to the URL you will access the application with online, and the application title could be whatever you want. I think a lot of people have made their title the same as their local directory name, like so...
...which has led to some problems, because the Application Identifier and the Application Title are being mistaken when we attempt to deploy. Don't worry though, fixing this is only a matter of changing a single line!
2) Checking app.yaml to confirm that Application is the same as Application Identifier
In your app's local directory, open the app.yaml file to edit. You can think of this as a sort of configuration file for the application. Inside, we're going to edit the first line called Application: and make sure that the information there matches our Application Identifier that we just registered online.
If you noticed in the first error image, my app was initially named herpderp -- and has now been changed to hyperanthony to match the app that is online.
If all's well that ends well, you should be ready to go! Hit the blue deploy button and your app should launch successfully! You can check here to confirm that I'm not a dirty liar. :)
Other pitfalls: I can't input a valid password to deploy. It's asking for my google username and password, and I have two-step verification enabled.
In this situation, your password will not be your typical google password -- but rather a one time, application-specific password that you can generate from your Google account settings page. Under the Security header, click the Edit link to the right of "Authorizing applications & sites." Scroll to the bottom of the page, and there should be a text field with a button next to it that says "Generate."
In the text field, type something that will let you remember what this password is for -- Google App Engine or Udacity, for example -- and then press generate. This password will be the one you need to use to deploy!
Other pitfalls: How can I edit app.yaml?
A simple word editor should allow you to edit app.yaml -- something like notepad or vi or vim on Linux/Mac from the terminal. Just type vim app.yaml and the text editor will open. Here's a vim cheatsheet for help navigating.
Other pitfalls: I'm using Mac and have Python pre-installed, and I get the error "Python 2.5 is too old to emulate the Python 2.7 runtime. Please use Python 2.6 or Python 2.7."
Mac OS X 10.7 (Lion) supports Python 2.7, but anything before that will come installed with an earlier version of Python (likely 2.5) and so you'll need to update. You can download a more recent version here.
thanks it works!!
God Bless you God Bless you God Bless you God Bless you God Bless you God Bless you God Bless you :-)
When I clicked Deploy I get error message:
Why is that?
Thanks man! I was missing the Deplot part! Nice tutorial!
my app.yaml has same application name still error is coming..
ChuckDone iPhone App By Masiar Ighani
Open iTunes to buy and download apps.
Who is ChuckDone ? The kind of guy who slams revolving doors; a man who lights fires with ice cubes – that’s who. ChuckDone is the type who simply knows how to get things done. He’ll even help you annihilate your task lists too.
A rough-and-tumble outlaw, ChuckDone creates to-dos, destroys checkboxes when tasks are completed, and makes running errands and tackling chores an entertaining blood sport – while improving your productivity in the end.
Dispatched to help you decimate duties as your personal assistant, ChuckDone is just as much a legend as you ever thought him to be.
** Easily add tasks and build lists with ChuckDone, and sit back and enjoy the action as those tasks are removed.
** His shotgun blows checkboxes to smithereens; his katana blade slices through with a flick of a wrist. The rest of his arsenal comprised of grenades, dynamite, rocket launchers, flamethrowers, ferocious dogs, heavy pianos, and dive-bombing planes are waiting to be unleashed through the app’s 20 different custom animations.
So, don’t just get things done, get ChuckDone.
• Create unlimited lists – The word “limited” isn’t in ChuckDone’s vocabulary. Create a list for you, your significant other, your kids, dog, cat, whoever. Make one list for the upcoming weekend or one for just another day of the week. Create a list of resolutions for the New Year or for any impending event.
• Stay on task; keep motivated – ChuckDone can create task lists in his sleep; as anyone can. Staying motivated is the key. You create the list and ChuckDone does the motivating, pushing you to keep moving forward via fun, entertaining animations.
• Celebrate your victories – ChuckDone doesn’t assist in simply setting goals…he helps you overcome obstacles en route to achieving them. He then joins in the celebration with 20 custom animations, obliterating checkboxes with each item ticked off your list. His arsenal is robust; his methods nothing but intense.
$.99 introductory price!!!
Thanks very much, this was very helpful!
My name is Hernan. I am an NYU graduate student conducting my research thesis on Self-Motivated Learners, specifically on “How to Increase MOOC Engagement.”
If you’ve enrolled in Udacity’s “Web Development” course -- regardless of whether you’ve completed it or not -- would you be so kind as to answer this 2-minute questionnaire?