Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
74c2a345
Commit
74c2a345
authored
5 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Fix documentation for web site deployment
parent
478070fd
No related branches found
No related tags found
No related merge requests found
Pipeline
#8500
failed
5 years ago
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dist/desktop
+1
-1
1 addition, 1 deletion
dist/desktop
doc/deploy_web.md
+40
-4
40 additions, 4 deletions
doc/deploy_web.md
www/index.html
+4
-3
4 additions, 3 deletions
www/index.html
www/js/config.js
+1
-1
1 addition, 1 deletion
www/js/config.js
with
46 additions
and
9 deletions
desktop
@
5a620ea1
Compare
d3566be2
...
5a620ea1
Subproject commit
d3566
be
2
a5
ef91861237252626305221bde1d7a8
Subproject commit
5a620ea1
be
8
a5
ad0596ba19887f6238e9a486c65
This diff is collapsed.
Click to expand it.
doc/deploy.md
→
doc/deploy
_web
.md
+
40
−
4
View file @
74c2a345
# Deploy Cesium
# Deploy Cesium
on a web server
## Bash script
> **WARN**: Installing Cesium as a web site is NOT recommended, for security reasons!
> A DNS attack can redirect to another web site (with modified javascript code) in order to retrieve user credentials (wallet secret key)
>
> We recommend the use of the [web extension](build_web_extension.md), or the [desktop application](build_desktop.md);
>
> Read [this post](https://forum.monnaie-libre.fr/t/cesium-evolue-aie-ca-va-piquer-mais/10015) for details (French).
## First deployment
1.
Create the root directory:
```
bash
cd
/var/www/
sudo mkdir
cesium
cd
cesium
```
2.
Download and unzip:
```
bash
cd
/var/www/cesium
wget
-kL
https://.../cesiumvx.y.z.zip
unzip
-o
/var/www/cesium cesiumvx.y.z.zip
```
3.
Configure Cesium default settings, by editing the file
`config.js`
;
4.
Configure your web engine (e.g. Apache, nginx) to use the root directory, by creating a new
`location`
or a new
`virtualhost`
;
Please refer to your engine documentation.
5.
Restart your web engine.
That's it !
## Update to the latest version
## Example Bash script
This is a bash script example, that you can use to deploy the latest release.
This is a bash script example, that you can use to deploy the latest release
, in a existing Cesium web site
.
This script will create or replace a directory name
`cesium`
, where application will be unpack.
This script will create or replace a directory name
`cesium`
, where application will be unpack.
**Be aware**
that the destination directory will be created
**where the script is**
.
**Be aware**
that the destination directory will be created
**where the script is**
.
...
@@ -34,6 +69,7 @@ cd $BASEDIR
...
@@ -34,6 +69,7 @@ cd $BASEDIR
echo
"Installing cesium into '
$BASEDIR
/cesium'..."
echo
"Installing cesium into '
$BASEDIR
/cesium'..."
# In order to get the latest version, simplify run:
wget
-qO-
https://git.duniter.org/clients/cesium-grp/cesium/raw/master/install.sh | bash
wget
-qO-
https://git.duniter.org/clients/cesium-grp/cesium/raw/master/install.sh | bash
export
VERSION
=
`
sed
-rn
"s/
\s
*
\"
version
\"
:
\"
([^
\"
]*)
\"
,
\s
*/
\1
/p"
cesium/config.js
`
export
VERSION
=
`
sed
-rn
"s/
\s
*
\"
version
\"
:
\"
([^
\"
]*)
\"
,
\s
*/
\1
/p"
cesium/config.js
`
...
...
This diff is collapsed.
Click to expand it.
www/index.html
+
4
−
3
View file @
74c2a345
...
@@ -53,11 +53,12 @@
...
@@ -53,11 +53,12 @@
</head>
</head>
<body
id=
"cesium"
ng-strict-di=
"true"
window-exit-unauth=
"true"
<body
id=
"cesium"
ng-strict-di=
"true"
window-exit-unauth=
"true"
ng-class=
"{'nobackdrop': $root.tour, 'expert-mode': $root.settings.expertMode}"
>
ng-class=
"{'nobackdrop': $root.tour, 'expert-mode': $root.settings.expertMode}"
style=
"background-color: #1a237e;"
>
<ion-nav-view>
<ion-nav-view>
<div
class=
"loader"
>
<div
class=
"loader"
>
<h3
style=
"text-align: center; padding-top: 25px; "
><b>
Cesium
</b></h3>
<h3
style=
"text-align: center; padding-top: 25px;
color: whitesmoke;
"
><b>
Cesium
</b></h3>
<h4
style=
"text-align: center;"
><i
class=
"icon ion-load-a"
></i></h4>
<h4
style=
"text-align: center;
color: whitesmoke;
"
><i
class=
"icon ion-load-a"
></i></h4>
</div>
</div>
</ion-nav-view>
</ion-nav-view>
...
...
This diff is collapsed.
Click to expand it.
www/js/config.js
+
1
−
1
View file @
74c2a345
...
@@ -98,7 +98,7 @@ angular.module("cesium.config", [])
...
@@ -98,7 +98,7 @@ angular.module("cesium.config", [])
}
}
},
},
"
version
"
:
"
1.6.1
"
,
"
version
"
:
"
1.6.1
"
,
"
build
"
:
"
2020-03-
17T16:53:39.290
Z
"
,
"
build
"
:
"
2020-03-
20T13:48:35.118
Z
"
,
"
newIssueUrl
"
:
"
https://git.duniter.org/clients/cesium-grp/cesium/issues/new
"
"
newIssueUrl
"
:
"
https://git.duniter.org/clients/cesium-grp/cesium/issues/new
"
})
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment