Hello, Thank you, you're right for the identation. But now I'm getting another error about the network. At this line in app.yaml : "name: mynetwork "
Here is the error message: Finished Step #1 PUSH DONE ------------------------------------------------------------------------------------------------------------------------ ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Network 'mynetwork' does not exist And that's my app.yaml file : runtime: php env: flex runtime_config: document_root: public skip_files: - .env network: instance_tag: aef-instance name: mynetwork subnetwork_name: subnetwork1 env_variables: APP_ENV: local APP_DEBUG : true APP_KEY: base64:********************************/iOQ= APP_STORAGE: /tmp VIEW_COMPILED_PATH: /tmp CACHE_DRIVER: database SESSION_DRIVER: database APP_LOG: daily APP_TIMEZONE: UTC DB_CONNECTION: mysql DB_HOST: localhost DB_PORT: 3306 DB_DATABASE: ************** DB_USERNAME: root DB_PASSWORD: ****************** DB_SOCKET: /cloudsql/*****************:europe-west1:********* QUEUE_DRIVER: database MAIL_MAILER: smtp MAIL_HOST: smtp.mailtrap.io MAIL_PORT: 2525 MAIL_USERNAME: null MAIL_PASSWORD: null GOOGLE_VISION_PROJECT_ID : ********************* Thanks in advance !!! Le lun. 16 mars 2020 à 23:28, Mua Rachmann <[email protected]> a écrit : > The error indicates your yaml file is not properly formatted. > Try checking your indentation somewhere. Maybe something is not well > aligned or given more spacing somewhere. > Generally it is two(2) spacing something of the sort. Let me know if the > error still persists. For instance take a look at your > > beta_settings: > cloud_sql_instances: **************************** > > It is way much indented than the others > > Best, > Mua > > > On Mon, 16 Mar 2020 at 22:06 Ben Abdesslem Sarah < > [email protected]> wrote: > >> Hello, >> >> This doesn't work. I don't know what to put there on the instance_tag. >> And I have read so many times the Google documentation about Network >> settings. >> >> C:\Users\someproject>gcloud app deploy >> ERROR: (gcloud.app.deploy) An error occurred while parsing file: >> [C:\Users\someproject\app.yaml] >> in "C:\Users\someproject\*app.yaml", line 42, column 17* >> >> The line 42 is *instance_tag: aef-instance* >> >> network: >> instance_tag: aef-instance >> name: mynetwork >> subnetwork_name: subnetwork1 >> >> If someone could help me, it will be really nice. Thank you in advance ! >> >> Le lun. 16 mars 2020 à 12:36, 'methkal' via Google App Engine < >> [email protected]> a écrit : >> >>> *instane_tag* can be anything of your choice. you can use for example >>> "aef-instance". this tag is assigned to each instance of the service upon >>> its creation. >>> The network *name *has to be the short name not the resource path (for >>> example, *mynetwork* rather than >>> *https://www.googleapis.com/compute/v1/projects/my-project/global/networks/mynetwork >>> <https://www.googleapis.com/compute/v1/projects/my-project/global/networks/mynetwork>* >>> ). >>> For *subnetwork_name *use also the short name like *subnetwork1* rather >>> than >>> *https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default/subnetworks/subnetwork1 >>> <https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default/subnetworks/subnetwork1>* >>> >>> check this page for more information >>> <https://cloud.google.com/appengine/docs/flexible/php/reference/app-yaml#network_settings> >>> >>> if that doesn't work. can you post the error that you receive after >>> these modifications? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google App Engine" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-appengine/16fbc448-a895-4e94-8a08-ec913b1181e2%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-appengine/16fbc448-a895-4e94-8a08-ec913b1181e2%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-appengine/CAFgsb9a2yQDdk5PV8-m0cDTrDgJZTQT3k%2Bn2CrOgRsE5NTTkOw%40mail.gmail.com >> <https://groups.google.com/d/msgid/google-appengine/CAFgsb9a2yQDdk5PV8-m0cDTrDgJZTQT3k%2Bn2CrOgRsE5NTTkOw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/CAHAhu-jvcp4hSaKSTymNmtJCDRf6sPN%2BSDsuWCS_x4gL9Pv9Lw%40mail.gmail.com > <https://groups.google.com/d/msgid/google-appengine/CAHAhu-jvcp4hSaKSTymNmtJCDRf6sPN%2BSDsuWCS_x4gL9Pv9Lw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAFgsb9YoiLqouMh%3DKpwT5p5fT79kessQXvPJ4K%3DBKJwRfjLYtg%40mail.gmail.com.
