Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ 24*3
- zsh: no matches found: 24*3
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ python 1 ↵
- Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
- [GCC 7.4.0] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> 24*30
- 720
- >>> 720*12
- 8640
- >>>
- KeyboardInterrupt
- >>>
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud
- ERROR: (gcloud) Command name argument expected.
- Usage: gcloud [optional flags] <group | command>
- group may be alpha | app | auth | beta | builds | components |
- composer | compute | config | container | dataflow |
- dataproc | datastore | debug | deployment-manager |
- dns | domains | endpoints | firebase | functions |
- iam | iot | kms | logging | ml | ml-engine |
- organizations | projects | pubsub | services | source |
- spanner | sql | topic
- command may be docker | feedback | help | info | init | version
- For detailed information on this command and its flags, run:
- gcloud --help
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud auth login admin@beanary.tech 2 ↵
- Your browser has been opened to visit:
- https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline
- [12227:12227:0215/095157.978153:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process.
- Opening in existing browser session.
- WARNING: `gcloud auth login` no longer writes application default credentials.
- If you need to use ADC, see:
- gcloud auth application-default --help
- You are now logged in as [admin@beanary.tech].
- Your current project is [None]. You can change this setting by running:
- $ gcloud config set project PROJECT_ID
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql instances create wordpress \
- --activation-policy=ALWAYS \
- --tier=db-n1-standard-1 \
- --region=ASIA-SOUTHEAST1
- ERROR: (gcloud.sql.instances.create) The required property [project] is not currently set.
- You may set it for your current workspace by running:
- $ gcloud config set project VALUE
- or it can be set temporarily by the environment variable [CLOUDSDK_CORE_PROJECT]
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud init 1 ↵
- Welcome! This command will take you through the configuration of gcloud.
- Settings from your current configuration [default] are:
- core:
- account: admin@beanary.tech
- disable_usage_reporting: 'True'
- Pick configuration to use:
- [1] Re-initialize this configuration [default] with new settings
- [2] Create a new configuration
- Please enter your numeric choice: 2
- Enter configuration name. Names start with a lower case letter and
- contain only lower case letters a-z, digits 0-9, and hyphens '-': beanary-homepage
- Your current configuration has been set to: [beanary-homepage]
- You can skip diagnostics next time by using the following flag:
- gcloud init --skip-diagnostics
- Network diagnostic detects and fixes local network connection issues.
- Checking network connection...done.
- Reachability Check passed.
- Network diagnostic (1/1 checks) passed.
- Choose the account you would like to use to perform operations for
- this configuration:
- [1] admin@beanary.tech
- [2] admin@obunda.id
- [3] Log in with a new account
- Please enter your numeric choice: 1
- You are logged in as: [admin@beanary.tech].
- Pick cloud project to use:
- [1] elevated-summer-268302
- [2] Create a new project
- Please enter numeric choice or text value (must exactly match list
- item): 2
- Enter a Project ID. Note that a Project ID CANNOT be changed later.
- Project IDs must be 6-30 characters (lowercase ASCII, digits, or
- hyphens) in length and start with a lowercase letter. beanary-homepage
- Your current project has been set to: [beanary-homepage].
- Not setting default zone/region (this feature makes it easier to use
- [gcloud compute] by setting an appropriate default value for the
- --zone and --region flag).
- See https://cloud.google.com/compute/docs/gcloud-compute section on how to set
- default compute region and zone manually. If you would like [gcloud init] to be
- able to do this for you the next time you run it, make sure the
- Compute Engine API is enabled for your project on the
- https://console.developers.google.com/apis page.
- Created a default .boto configuration file at [/home/yoesoff/.boto]. See this file and
- [https://cloud.google.com/storage/docs/gsutil/commands/config] for more
- information about configuring Google Cloud Storage.
- Your Google Cloud SDK is configured and ready to use!
- * Commands that require authentication will use admin@beanary.tech by default
- * Commands will reference project `beanary-homepage` by default
- Run `gcloud help config` to learn how to change individual settings
- This gcloud configuration is called [beanary-homepage]. You can create additional configurations if you work with multiple accounts and/or projects.
- Run `gcloud topic configurations` to learn more.
- Some things to try next:
- * Run `gcloud --help` to see the Cloud Platform services you can interact with. And run `gcloud help COMMAND` to get help on any gcloud command.
- * Run `gcloud topic -h` to learn about advanced features of the SDK like arg files and output formatting
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud init
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql instances create wordpress \ 1 ↵
- --activation-policy=ALWAYS \
- --tier=db-n1-standard-1 \
- --region=ASIA-SOUTHEAST1
- ERROR: (gcloud.sql.instances.create) HTTPError 400: Invalid request: Invalid value for region: ASIA-SOUTHEAST1.
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql instances create wordpress \ 1 ↵
- --activation-policy=ALWAYS \
- --tier=db-n1-standard-1 \
- --region=ASIA-SOUTHEAST1
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ 130 ↵
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql instances create wordpress \ 130 ↵
- --activation-policy=ALWAYS \
- --tier=db-n1-standard-1 \
- --region=asia-southeast1
- Creating Cloud SQL instance...⠏
- Creating Cloud SQL instance...done.
- Created [https://www.googleapis.com/sql/v1beta4/projects/beanary-homepage/instances/wordpress].
- NAME DATABASE_VERSION LOCATION TIER ADDRESS STATUS
- wordpress MYSQL_5_6 asia-southeast1-b db-n1-standard-1 35.198.201.17 RUNNABLE
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql databases create wordpress --instance wordpress
- Creating Cloud SQL database...done.
- Created database [wordpress].
- instance: wordpress
- name: wordpress
- project: beanary-homepage
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql users set-password root \
- --host=% \
- --instance wordpress \
- --password=123abc!@#Password
- zsh: event not found: @#
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql users set-password root \ 1 ↵
- --host=% \
- --instance wordpress \
- --password=123abcassword
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ 130 ↵
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ gcloud sql users set-password root \ 130 ↵
- --host=% \
- --instance wordpress \
- --password=123abcatpassworddotcom
- Updating Cloud SQL user...done.
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ cd ~/
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ mkdir ~/beanary
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~
- ╰─➤ cd beanary
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary
- ╰─➤ mkdir homepage
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary
- ╰─➤ cd homepage
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ composer require google/cloud-tools
- Using version ^0.9.1 for google/cloud-tools
- ./composer.json has been created
- Loading composer repositories with package information
- Updating dependencies (including require-dev)
- Package operations: 17 installs, 0 updates, 0 removals
- - Installing symfony/polyfill-ctype (v1.14.0): Downloading (100%)
- - Installing symfony/polyfill-mbstring (v1.14.0): Downloading (100%)
- - Installing twig/twig (v2.12.5): Downloading (100%)
- - Installing symfony/process (v4.4.4): Downloading (100%)
- - Installing symfony/filesystem (v4.4.4): Downloading (100%)
- - Installing psr/container (1.0.0): Downloading (100%)
- - Installing symfony/service-contracts (v2.0.1): Downloading (100%)
- - Installing symfony/polyfill-php73 (v1.14.0): Downloading (100%)
- - Installing symfony/console (v4.4.4): Downloading (100%)
- - Installing symfony/dom-crawler (v5.0.4): Downloading (100%)
- - Installing symfony/browser-kit (v4.4.4): Downloading (100%)
- - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
- - Installing psr/http-message (1.0.1): Downloading (100%)
- - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)
- - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
- - Installing guzzlehttp/guzzle (6.5.2): Downloading (100%)
- - Installing google/cloud-tools (v0.9.1): Downloading (100%)
- symfony/service-contracts suggests installing symfony/service-implementation ()
- symfony/console suggests installing symfony/event-dispatcher ()
- symfony/console suggests installing symfony/lock ()
- symfony/console suggests installing psr/log (For using the console logger)
- symfony/dom-crawler suggests installing symfony/css-selector ()
- guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
- guzzlehttp/guzzle suggests installing psr/log (Required for using the Log middleware)
- guzzlehttp/guzzle suggests installing ext-intl (Required for Internationalized Domain Name (IDN) support)
- Writing lock file
- Generating autoload files
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ php vendor/bin/wp-gae
- Wordpress Helper
- Usage:
- command [options] [arguments]
- Options:
- -h, --help Display this help message
- -q, --quiet Do not output any message
- -V, --version Display this application version
- --ansi Force ANSI output
- --no-ansi Disable ANSI output
- -n, --no-interaction Do not ask any interactive question
- -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Available commands:
- create Create a new WordPress site for Google Cloud
- help Displays help for a command
- list Lists commands
- update Update an existing WordPress site for Google Cloud
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ php vendor/bin/wp-gae -q
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ php vendor/bin/wp-gae -V
- Wordpress Helper
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ php vendor/bin/wp-gae create
- Please enter a directory path for the new project (defaults to my-wordpress-project):beanary-homepage
- We will use the directory: beanary-homepage. If the directory exists, we will overwrite the contents. Do you want to continue? (Y/n)Y
- Downloading the WordPress archive...
- A directory /home/yoesoff/beanary/homepage/beanary-homepage was created.
- Downloaded the WordPress archive.
- Re-using a directory /home/yoesoff/beanary/homepage/beanary-homepage.
- Downloading the GCS plugin...
- Downloaded GCS plugin.
- Please select the region of your Cloud SQL instance (defaults to us-central1)
- [0 ] northamerica-northeast1
- [1 ] us-central
- [2 ] us-central1
- [3 ] us-east1
- [4 ] us-east4
- [5 ] us-west1
- [6 ] us-west2
- [7 ] southamerica-east1
- [8 ] europe-north1
- [9 ] europe-west1
- [10] europe-west2
- [11] europe-west3
- [12] europe-west4
- [13] asia-east1
- [14] asia-northeast1
- [15] asia-south1
- [16] asia-southeast1
- [17] australia-southeast1
- > 16
- Using db_region asia-southeast1
- Please enter project_id (required): beanary_homepage
- Please enter db_instance (required): ^C
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ ls 130 ↵
- beanary-homepage composer.json composer.lock vendor
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ php vendor/bin/wp-gae update ./beanary-homepage
- Re-using a directory /home/yoesoff/beanary/homepage/./beanary-homepage.
- Please select the region of your Cloud SQL instance (defaults to us-central1)
- [0 ] northamerica-northeast1
- [1 ] us-central
- [2 ] us-central1
- [3 ] us-east1
- [4 ] us-east4
- [5 ] us-west1
- [6 ] us-west2
- [7 ] southamerica-east1
- [8 ] europe-north1
- [9 ] europe-west1
- [10] europe-west2
- [11] europe-west3
- [12] europe-west4
- [13] asia-east1
- [14] asia-northeast1
- [15] asia-south1
- [16] asia-southeast1
- [17] australia-southeast1
- > 16
- Using db_region asia-southeast1
- Please enter project_id (required): beanary-homepage
- Please enter db_instance (required): wordpress
- Please enter db_name (required): wordpress
- Please enter db_user (defaults to 'root'): 123abcatpassworddotcom
- Please enter db_password (required):
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ php vendor/bin/wp-gae update ./beanary-homepage 130 ↵
- Re-using a directory /home/yoesoff/beanary/homepage/./beanary-homepage.
- Please select the region of your Cloud SQL instance (defaults to us-central1)
- [0 ] northamerica-northeast1
- [1 ] us-central
- [2 ] us-central1
- [3 ] us-east1
- [4 ] us-east4
- [5 ] us-west1
- [6 ] us-west2
- [7 ] southamerica-east1
- [8 ] europe-north1
- [9 ] europe-west1
- [10] europe-west2
- [11] europe-west3
- [12] europe-west4
- [13] asia-east1
- [14] asia-northeast1
- [15] asia-south1
- [16] asia-southeast1
- [17] australia-southeast1
- > 16
- Using db_region asia-southeast1
- Please enter project_id (required): beanary-homepage
- Please enter db_instance (required): wordpress
- Please enter db_name (required): wordpress
- Please enter db_user (defaults to 'root'): root
- Please enter db_password (required):
- Do you want to use the same db user and password for local run? (Y/n)Y
- Copied necessary files with parameters.
- Your WordPress project has been updated at ./beanary-homepage
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage
- ╰─➤ cd beanary-homepage
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage/beanary-homepage
- ╰─➤ gcloud app deploy app.yaml cron.yaml
- You are creating an app for project [beanary-homepage].
- WARNING: Creating an App Engine application for a project is irreversible and the region
- cannot be changed. More information about regions is at
- <https://cloud.google.com/appengine/docs/locations>.
- Please choose the region where you want your App Engine application
- located:
- [1] europe-west (supports standard and flexible)
- [2] europe-west2 (supports standard and flexible)
- [3] us-east1 (supports standard and flexible)
- [4] us-east4 (supports standard and flexible)
- [5] asia-northeast1 (supports standard and flexible)
- [6] asia-south1 (supports standard and flexible)
- [7] australia-southeast1 (supports standard and flexible)
- [8] southamerica-east1 (supports standard and flexible)
- [9] northamerica-northeast1 (supports standard and flexible)
- [10] asia-east2 (supports standard and flexible)
- [11] europe-west3 (supports standard and flexible)
- [12] us-west2 (supports standard and flexible)
- [13] europe-west6 (supports standard and flexible)
- [14] us-central (supports standard and flexible)
- [15] asia-northeast2 (supports standard and flexible)
- [16] cancel
- Please enter your numeric choice: 5
- Creating App Engine application in project [beanary-homepage] and region [asia-northeast1]....done.
- Services to deploy:
- descriptor: [/home/yoesoff/beanary/homepage/beanary-homepage/app.yaml]
- source: [/home/yoesoff/beanary/homepage/beanary-homepage]
- target project: [beanary-homepage]
- target service: [default]
- target version: [20200215t103802]
- target url: [http://beanary-homepage.appspot.com]
- Configurations to update:
- descriptor: [/home/yoesoff/beanary/homepage/beanary-homepage/cron.yaml]
- type: [cron jobs]
- target project: [beanary-homepage]
- Do you want to continue (Y/n)? y
- Beginning deployment of service [default]...
- Created .gcloudignore file. See `gcloud topic gcloudignore` for details.
- ╔════════════════════════════════════════════════════════════╗
- ╠═ Uploading 1904 files to Google Cloud Storage ═╣
- ╚════════════════════════════════════════════════════════════╝
- File upload done.
- Updating service [default]...failed.
- ERROR: (gcloud.app.deploy) Error Response: [7] Access Not Configured. Cloud Build has not been used in project beanary-homepage before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudbuild.googleapis.com/overview?project=beanary-homepage then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage/beanary-homepage
- ╰─➤ gcloud app deploy app.yaml cron.yaml 1 ↵
- Services to deploy:
- descriptor: [/home/yoesoff/beanary/homepage/beanary-homepage/app.yaml]
- source: [/home/yoesoff/beanary/homepage/beanary-homepage]
- target project: [beanary-homepage]
- target service: [default]
- target version: [20200215t104748]
- target url: [http://beanary-homepage.appspot.com]
- Configurations to update:
- descriptor: [/home/yoesoff/beanary/homepage/beanary-homepage/cron.yaml]
- type: [cron jobs]
- target project: [beanary-homepage]
- Do you want to continue (Y/n)? Y
- Beginning deployment of service [default]...
- ╔════════════════════════════════════════════════════════════╗
- ╠═ Uploading 0 files to Google Cloud Storage ═╣
- ╚════════════════════════════════════════════════════════════╝
- File upload done.
- Updating service [default]...done.
- Setting traffic split for service [default]...done.
- Deployed service [default] to [http://beanary-homepage.appspot.com]
- Updating config [cron]...done.
- Cron jobs have been updated.
- Visit the Cloud Platform Console Task Queues page to view your queues and cron jobs.
- https://console.cloud.google.com/appengine/taskqueues/cron?project=beanary-homepage
- You can stream logs from the command line by running:
- $ gcloud app logs tail -s default
- To view your application in the web browser run:
- $ gcloud app browse
- ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage/beanary-homepage
- ╰─➤
Advertisement
Add Comment
Please, Sign In to add comment