Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ meteor-gce Public

Install scripts to run Meteor on Google Compute Engine

License

Q42/meteor-gce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Meteor on Google Compute Engine

Install scripts to run Meteor on Google Compute Engine.

Usage

  1. Create a new project on GCE:
    https://console.developers.google.com/

  2. Download the gcloud tool:
    https://developers.google.com/cloud/sdk/

  3. Authenticate to Google Cloud Platform:
    gcloud auth login

  4. Configure gcloud to use your new project by default:
    gcloud config set project <YOUR_PROJECT_ID>

  5. Create a bucket in Google Cloud Storage (it needs to be unique) for example:
    gsutil mb gs://iloveq42

  6. Edit startup.sh to use your bucket. For example:
    export BUCKET='iloveq42'

  7. Copy startup.sh (replace 'iloveq42' with your bucket name):
    gsutil cp startup.sh gs://iloveq42

  8. Bundle your Meteor app into the parent directory:
    meteor build .. --architecture os.linux.x86_64

  9. Copy your app to your bucket (replace 'iloveq42' with your bucket name):
    gsutil cp ../<YOUR_APP_NAME>.tar.gz gs://iloveq42/versions/default.tar.gz

  10. Create a new persistent disk for MongoDB:
    gcloud compute disks create "mongo-data" --size "200GB" --zone "europe-west1-d" --type "pd-standard"

  11. Create a compute engine instance using the startup.sh script (replace 'iloveq42' with your bucket name):
    gcloud compute instances create "meteor" --zone "europe-west1-d" --tags "http-server" --scopes storage-ro --metadata startup-script-url=gs://iloveq42/startup.sh --disk "name=mongo-data" "mode=rw" "boot=no"

This will output something like this:

NAME   ZONE           MACHINE_TYPE  INTERNAL_IP   EXTERNAL_IP   STATUS
meteor europe-west1-d n1-standard-1 10.240.134.93 130.211.62.68 RUNNING

Done! At this point your site should be reachable on the external IP (http://130.211.62.68 in this case).

About

Install scripts to run Meteor on Google Compute Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages