change build for test servers, bump version to 0.3.1
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Only the variables that start with VUE_APP_ are seen in the application process.env in Vue.
|
|
||||||
|
|
||||||
# this won't resolve as a URL on production; it's a URN only found in the test system
|
# I tried setting values here and using `vue-cli-service build --mode development`
|
||||||
VUE_APP_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HNTZYJJXTGT0EZS3VEJGX7AK
|
# but it didn't create some things in "dist":
|
||||||
VUE_APP_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000
|
# - the "css" directory with the CSS extracted from Vue files
|
||||||
VUE_APP_DEFAULT_IMAGE_API_SERVER=http://localhost:3002
|
# - the sw_scripts-combined* files
|
||||||
|
#
|
||||||
|
# ¯\_(ツ)_/¯
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -34,11 +34,24 @@ npm run lint
|
|||||||
|
|
||||||
* Update the project.task.yaml & CHANGELOG.md & the version in package.json, run `npm install`.
|
* Update the project.task.yaml & CHANGELOG.md & the version in package.json, run `npm install`.
|
||||||
|
|
||||||
* If production: change package.json to remove "_Test". Also record what version is on production.
|
* Record what version is currently on production.
|
||||||
|
|
||||||
* `npm run build-dev` for test servers or `npm run build` for production.
|
* Run the correct build
|
||||||
|
|
||||||
* Get on the server and back up the time-safari folder.
|
* Production
|
||||||
|
```
|
||||||
|
# This picks up values from .env.production
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
* Development
|
||||||
|
```
|
||||||
|
# Set test values. (See .env.development for more details.)
|
||||||
|
# The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there.
|
||||||
|
APP_TITLE="TimeSafari_Test" VUE_APP_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HNTZYJJXTGT0EZS3VEJGX7AK VUE_APP_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 VUE_APP_DEFAULT_IMAGE_API_SERVER=http://localhost:3002 npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
* Get on the server and back up the DB and the time-safari folder.
|
||||||
|
|
||||||
* `rsync -azvu -e "ssh -i ~/.ssh/..." dist ubuntutest@test.timesafari.app:time-safari`
|
* `rsync -azvu -e "ssh -i ~/.ssh/..." dist ubuntutest@test.timesafari.app:time-safari`
|
||||||
|
|
||||||
|
|||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "TimeSafari_Test",
|
"name": "TimeSafari",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "TimeSafari_Test",
|
"name": "TimeSafari",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dicebear/collection": "^5.3.5",
|
"@dicebear/collection": "^5.3.5",
|
||||||
"@dicebear/core": "^5.3.5",
|
"@dicebear/core": "^5.3.5",
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "TimeSafari_Test",
|
"name": "TimeSafari",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"build-dev": "vue-cli-service build --mode development",
|
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
tasks :
|
tasks :
|
||||||
|
|
||||||
|
- bug maybe - a new give remembers the previous project
|
||||||
- alert & stop if give amount < 0
|
- alert & stop if give amount < 0
|
||||||
- onboarding video
|
- onboarding video
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ const { gitDescribeSync } = require("git-describe");
|
|||||||
const { exec } = require("child_process");
|
const { exec } = require("child_process");
|
||||||
|
|
||||||
process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash;
|
process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash;
|
||||||
|
const APP_TITLE = process.env.APP_TITLE || require("./package.json").name;
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
transpileDependencies: true,
|
transpileDependencies: true,
|
||||||
@@ -30,6 +31,7 @@ module.exports = defineConfig({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
pwa: {
|
pwa: {
|
||||||
|
name: APP_TITLE,
|
||||||
iconPaths: {
|
iconPaths: {
|
||||||
faviconSVG: "img/icons/safari-pinned-tab.svg",
|
faviconSVG: "img/icons/safari-pinned-tab.svg",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user