mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Change node install method
This commit is contained in:
@@ -13,4 +13,5 @@
|
|||||||
- xdebug
|
- xdebug
|
||||||
- composer
|
- composer
|
||||||
- mailcatcher
|
- mailcatcher
|
||||||
|
- node
|
||||||
- app
|
- app
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
# application tasks to be customized and to run after the main provision
|
# application tasks to be customized and to run after the main provision
|
||||||
- name: Install global npm packages
|
- name: Install global npm packages
|
||||||
shell: npm install -g bower recess
|
shell: . /usr/local/nvm/nvm.sh && npm install -g bower recess
|
||||||
|
6
resources/ansible/roles/node/tasks/main.yml
Normal file
6
resources/ansible/roles/node/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: Install NVM
|
||||||
|
shell: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | NVM_DIR=/usr/local/nvm /bin/bash creates=/usr/local/nvm
|
||||||
|
|
||||||
|
- name: Install specific nodejs version
|
||||||
|
shell: . /usr/local/nvm/nvm.sh && nvm install 0.12.0 && nvm alias default 0.12.0
|
@@ -11,5 +11,5 @@
|
|||||||
|
|
||||||
- name: Disable PHP cache limiter
|
- name: Disable PHP cache limiter
|
||||||
lineinfile: dest=/etc/php5/apache2/php.ini
|
lineinfile: dest=/etc/php5/apache2/php.ini
|
||||||
regexp='^\(session.cache_limiter = \).*'
|
regexp=';?\s*session.cache_limiter\s*=\s*'
|
||||||
line='session.cache_limiter = ""'
|
line='session.cache_limiter = ""'
|
||||||
|
@@ -11,5 +11,5 @@
|
|||||||
|
|
||||||
- name: Disable PHP cache limiter
|
- name: Disable PHP cache limiter
|
||||||
lineinfile: dest=/etc/php5/cli/php.ini
|
lineinfile: dest=/etc/php5/cli/php.ini
|
||||||
regexp='^\(session.cache_limiter = \).*'
|
regexp=';?\s*session.cache_limiter\s*=\s*'
|
||||||
line='session.cache_limiter = ""'
|
line='session.cache_limiter = ""'
|
||||||
|
@@ -20,5 +20,5 @@
|
|||||||
|
|
||||||
- name: Disable PHP cache limiter
|
- name: Disable PHP cache limiter
|
||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp='^\(session.cache_limiter = \).*'
|
regexp=';?\s*session.cache_limiter\s*=\s*'
|
||||||
line='session.cache_limiter = ""'
|
line='session.cache_limiter = ""'
|
||||||
|
@@ -6,8 +6,6 @@ server:
|
|||||||
- git
|
- git
|
||||||
- imagemagick
|
- imagemagick
|
||||||
- htop
|
- htop
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- iotop
|
- iotop
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- libzmq3-dev
|
- libzmq3-dev
|
||||||
@@ -16,6 +14,8 @@ server:
|
|||||||
- sqlite3
|
- sqlite3
|
||||||
- libsqlite3-dev
|
- libsqlite3-dev
|
||||||
- memcached
|
- memcached
|
||||||
|
- build-essential
|
||||||
|
- libssl-dev
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
locales:
|
locales:
|
||||||
- en_GB.UTF-8
|
- en_GB.UTF-8
|
||||||
|
Reference in New Issue
Block a user