Commit 747a2d9c by Jonathan Thomas

Fixing .env files to work for each mode (development, production), and updating…

Fixing .env files to work for each mode (development, production), and updating README with deployment instructions.
parent bbf13755
VUE_APP_ENV_VARIABLE=hello
VUE_APP_API_URL=https://cloud.openshot.org/
\ No newline at end of file
VUE_APP_OPENSHOT_API_URL=https://cloud.openshot.org
\ No newline at end of file
VUE_APP_OPENSHOT_API_URL=https://cloud.openshot.org
\ No newline at end of file
simple-editor
=============
This is a very simple demo application for OpenShot Cloud API. You can log-in, upload files,
create/edit clips, Move clips (up/down), and export & download a video.
create/edit clips, move clips (up/down), and export / download a video.
urls:
-----
......@@ -22,15 +22,25 @@ npm install
```
### Compiles and hot-reloads for development
Modify `.env.development` file to update the `VUE_APP_OPENSHOT_API_URL` variable used in development mode. This is
a required step when building this application for use with your own **OpenShot Cloud API** server.
```
npm run serve
```
### Compiles and minifies for production
Modify `.env.production` file to update the `VUE_APP_OPENSHOT_API_URL` variable used in production/build mode. This is
a required step when building this application for use with your own **OpenShot Cloud API** server.
```
npm run build
```
This will generate a `dist` folder, which contains all the needed files to deploy this application. The dist directory
is meant to be served by an HTTP server, so it will not work if you open dist/index.html directly over file:// protocol.
Read more about deployment: https://cli.vuejs.org/guide/deployment.html
### Lints and fixes files
```
npm run lint
......
......@@ -3,7 +3,7 @@ import {create} from "axios";
// Init a new axios instance, with auth
const instance = create({
baseURL: 'https://cloud.openshot.org'
baseURL: process.env.VUE_APP_OPENSHOT_API_URL
});
// Init a new axios instance, with auth
......
......@@ -37,11 +37,6 @@
data() {
return {
}
},
computed: {
envVar() {
return process.env.VUE_APP_ENV_VARIABLE
},
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment