Amazon ã® Cloud9 ã«GAEéçºç°å¢ãä½ãæé
AWSã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãã¦ãCloud9ãã§æ¤ç´¢ããã¨åºã¦ããã®ã§ãããã¯ãªãã¯ã
Cloud9ã®ããã·ã¥ãã¼ããéãã®ã§ããªã¬ã³ã¸è²ã®ãCreate environmentããã¯ãªãã¯ã
é©å½ã«ååãã¤ãã¦ããNext stepãâãNext stepãâãCreate environmentãã§ç°å¢ãä½ãããã
ã§ããç°å¢ã®ãOpen IDEããã¯ãªãã¯ããã¨ãã©ã¦ã¶ä¸ã«IDEã表示ãããã
shellã®ã¨ããã§ä»¥ä¸ã®ã³ãã³ããå
¥åã
$ wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-180.0.0-linux-x86_64.tar.gz $ tar zxvf google-cloud-sdk-180.0.0-linux-x86_64.tar.gz $ ./google-cloud-sdk/install.sh $ ./google-cloud-sdk/bin/gcloud init $ ./google-cloud-sdk/bin/gcloud components update $ ./google-cloud-sdk/bin/gcloud components install app-engine-java $ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz $ tar zxvf jdk-8u162-linux-x64.tar.gz $ wget http://www-eu.apache.org/dist/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz $ tar zxvf apache-maven-3.5.2-bin.tar.gz $ wget https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.54.zip $ unzip appengine-java-sdk-1.9.54.zip $ export JAVA_HOME=/home/ec2-user/jdk1.8.0_162/ $ export PATH=/home/ec2-user/appengine-java-sdk-1.9.54/bin:/home/ec2-user/jdk1.8.0_162/bin:/home/ec2-user/apache-maven-3.5.2/bin:/home/ec2-user/google-cloud-sdk/bin:$PATH
GAEã¢ããªã git clone ãããªããã¦ãã«ããã¦ã
$ dev_appserver.sh <war-directory>
ããã¨ãCloud9ä¸ã§éçºãµã¼ãã¼ãèµ·åããã
Cloud9 ã¡ãã¥ã¼ãã¼ã®ãPreviewãã«ãããPreview Running Applicationãã§éçºãµã¼ãã¼ã«ã¢ã¯ã»ã¹ã§ããã