Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pixel Humain
GoGoCarto
Commits
cbb380ef
Commit
cbb380ef
authored
May 08, 2017
by
Sebastian Castro
Browse files
Update installation doc
parent
7ef73074
Changes
2
Hide whitespace changes
Inline
Side-by-side
install_debian.sh
→
docs/
install_debian.sh
View file @
cbb380ef
File moved
docs/installation.md
View file @
cbb380ef
...
...
@@ -3,6 +3,8 @@ Installation and Production Instructions
Feel free to add some more informations if you solve installation issues !
*There is a script for debian installation called install_debian.sh in this docs directory !*
Requirements
------------
...
...
@@ -10,9 +12,8 @@ Requirements
2.
[
Composer
](
https://getcomposer.org/download/
)
3.
[
Nodejs
](
https://nodejs.org/en/download/
)
4.
[
Git
](
https://git-scm.com/
)
5.
Php
Server (Apache,
[
Wamp server
](
http://www.wampserver.com/
)
for example
)
5.
Web
Server (Apache,
Ngninx,
[
Wamp server
](
http://www.wampserver.com/
)
...
)
6.
MongoDB (http://php.net/manual/fr/mongodb.installation.php)
7.
Any Text Editor (SublimeText for example)
Installation
------------
...
...
@@ -20,7 +21,7 @@ Installation
### Cloning repo (clone dev branch)
```
cd path-to-php-server-folder (default linux /var/www/html, windows c:/wamp/www... )
git clone -b dev https://github.com/Biopen
landes
/CartoV3.git
git clone -b dev https://github.com/Biopen/CartoV3.git
cd CartoV3/
```
...
...
@@ -33,6 +34,7 @@ php path-to/composer.phar install or composer install
Workflow dependencies (compiling sass and javascript)
```
npm install gulp
npm install -g gulp
npm install
```
...
...
@@ -66,8 +68,13 @@ doctrine:mongodb:generate:proxies
doctrine:mongodb:fixtures:load
```
Load defaul admin user "admin/admin"
```
doctrine:fixtures:load
```
Then generate if necessary random point on the map :
http://localhost/cartoV3/PagesVertes/web/app_dev.php/acteurs/
generate
/5
00
app:elements:
generate
2
00
Everthing is ready, enjoy :
http://localhost/PagesVertes/web/app_dev.php
...
...
@@ -75,13 +82,18 @@ http://localhost/PagesVertes/web/app_dev.php
Production
----------
1.
Generate compressed js and css files
```
gulp production```
1.
Dump assetic in symfony console to update the web/templates files
```
assetic:dump```
2. Generate compressed js and css files
```
gulp build
gulp production
```
2
.
Move files to distant Server (FTP or oth
er
)
3
.
enable gz compression in your web serv
er
3
. In the distant console (http://yoursite.com/web/app_dev.php/_console)
4
. In the distant console (http://yoursite.com/web/app_dev.php/_console)
```
cache:clear --env=prod
assetic:dump --env=prod
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment