Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying an aurelia.cli built app

Tags:

aurelia

I have built a simple aurelia web page without a back end, and I am now interested in going into production. I used Aurelia-cli for bundling, hoping this would be simple, but I am not sure how to proceed. Which files should I upload to the server to have the site working? Thanks for the help.

like image 774
Luis Fominaya Avatar asked Aug 13 '16 16:08

Luis Fominaya


People also ask

How do I run Aurelia app?

Running Your Aurelia AppFrom inside your project folder, simply execute au run . This will build your app, creating all bundles in the process. It will start a minimal web server and serve your application. The dev web server by default auto-refreshes your browser when source code changes.

How do I create Aurelia project?

To create the project, run au new from the command line. You will be presented with a number of options. Name the project "todo" and then select either the "Default ESNext" or "Default TypeScript" option depending on what is most comfortable for you. (Do not select "Custom" for this tutorial.)

What is the purpose of building your Aurelia application code with Gulp tasks?

The Aurelia CLI allows you to execute Gulp tasks, and a few gulp tasks are provided out of the box that get you started. For any new project you need a task to build, run and test the application, so the CLI provides these tasks for you. These tasks can be found in the aurelia_project/tasks directory.

How do I update Aurelia framework?

First, run npm install aurelia-cli@latest -g to update the CLI globally, and run npm install -D aurelia-cli@latest from the project directory to update the local Aurelia CLI.


1 Answers

In a nutshell:

  • au build --env prod
  • copy the index.html to your main deployment folder on your server
  • copy the /scripts folder to the same location.
like image 119
shawnT Avatar answered Sep 24 '22 17:09

shawnT