Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 27, 2021 10:15 pm GMT

Platform.sh VueJS platform.sh gridsome application deployment template

Currently I need to deploy my application to platform.sh but could find a good example for the template for a vue - grid some application so here it is:

The application that I'm currently using for this test is this
Github: mendozaRoofing
Live site:
Mendoza roofing Wilmington NC <- Host in Netlify currently

For the .platform.app.yaml file I have the fallowing configuration

# .platform.app.yaml# The name of this application, which must be unique within a project.name: "vuejs"# The type key specifies the language and version for your application.type: "nodejs:14"build:  flavor: none# Build dependencies.dependencies:  nodejs:    "@gridsome/cli": "*"# The hooks that will be triggered when the package is deployed.hooks:  # Build hooks can modify the application files on disk but not access any services like databases.  build: |    npm i    gridsome build# The size of the persistent disk of the application (in MB).disk: 5120# The configuration of the application when it is exposed to the web.web:  locations:    "/":      # The public directory of the application relative to its root.      root: "dist" #The build directory if you have a custom output directory then you should change it      index: ["index.html"]      scripts: false      allow: true

Not the other files that we need for the .platform folder

For the router.yaml file that should go in the .platform directory

# Each route describes how an incoming URL is going to be processed by Platform.sh."https://www.{default}/":  type: upstream  upstream: "vuejs:http"#Remember the the name in the .platform.app.yaml  should be the same for the name before the :http"https://{default}/":  type: redirect  to: "https://www.{default}/"

For the services.yaml file that should go in the .platform directory

Currently, I have this file empty because is just a static site.

The site link from the platform.sh
Deploy Site


Original Link: https://dev.to/leamsigc/platform-sh-vuejs-platform-sh-gridsome-application-deployment-template-45h2

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To