Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
307681cd
authored
Nov 28, 2016
by
Fernando Martinez
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'develop' of
http://scm.ujaen.es/softuno/pictogram
into develop
parents
4b906d96
fb5ce783
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
11 deletions
sails/bootstrap.sh
sails/roles/database/files/init.sql
sails/roles/database/files/test-centrodestrezas.sql
sails/roles/database/vars/main.yml
sails/roles/server/files/local.js
sails/src/config/connections.js
sails/src/config/ssl/letsencrypt.md
sails/bootstrap.sh
View file @
307681cd
...
@@ -7,6 +7,8 @@ elif [ -e "/vagrant/src/app.js" ]; then
...
@@ -7,6 +7,8 @@ elif [ -e "/vagrant/src/app.js" ]; then
cd
/vagrant/src
&&
forever start app.js
--debug
cd
/vagrant/src
&&
forever start app.js
--debug
elif
[
-e
"/home/vagrant/sync/src/app.js"
]
;
then
elif
[
-e
"/home/vagrant/sync/src/app.js"
]
;
then
cd
/home/vagrant/sync/src
&&
forever start app.js
--debug
cd
/home/vagrant/sync/src
&&
forever start app.js
--debug
elif
[
-e
"/home/ubuntu/pictogram/sails/src/app.js"
]
;
then
cd
/home/ubuntu/pictogram/sails/src
&&
forever start app.js
--debug
else
else
echo
"-- app.js not found, cannot run pictogram server"
echo
"-- app.js not found, cannot run pictogram server"
exit
exit
...
...
sails/roles/database/files/init.sql
View file @
307681cd
...
@@ -2,10 +2,9 @@ SET foreign_key_checks=0;
...
@@ -2,10 +2,9 @@ SET foreign_key_checks=0;
DROP
USER
IF
EXISTS
'pictodbu'
;
DROP
USER
IF
EXISTS
'pictodbu'
;
DELETE
FROM
mysql
.
user
WHERE
user
=
'pictodbu'
;
DELETE
FROM
mysql
.
user
WHERE
user
=
'pictodbu'
;
FLUSH
PRIVILEGES
;
FLUSH
PRIVILEGES
;
CREATE
USER
'pictodbu'
@
'localhost'
identified
by
'p1KT0!15.'
;
CREATE
USER
'pictodbu'
@
'%'
identified
by
'r"YjtnB+a4$.M*nJ'
;
GRANT
USAGE
ON
*
.
*
TO
'pictodbu'
@
'localhost'
;
DROP
DATABASE
IF
EXISTS
pictodb
;
DROP
DATABASE
IF
EXISTS
pictodb
;
CREATE
DATABASE
pictodb
;
CREATE
DATABASE
pictodb
;
SET
foreign_key_checks
=
1
;
SET
foreign_key_checks
=
1
;
GRANT
all
privileges
ON
pictodb
.
*
to
'pictodbu'
@
'localhost'
identified
by
'
p1KT0!15.
'
;
GRANT
all
privileges
ON
pictodb
.
*
to
'pictodbu'
@
'localhost'
identified
by
'
r"YjtnB+a4$.M*nJ
'
;
FLUSH
PRIVILEGES
;
FLUSH
PRIVILEGES
;
sails/roles/database/files/test-centrodestrezas.sql
View file @
307681cd
...
@@ -73,7 +73,7 @@ INSERT IGNORE INTO `student` (
...
@@ -73,7 +73,7 @@ INSERT IGNORE INTO `student` (
'es-es'
,
'es-es'
,
(
SELECT
id
from
office
WHERE
email
=
'centrodestrezas@gmail.com'
),
(
SELECT
id
from
office
WHERE
email
=
'centrodestrezas@gmail.com'
),
'{"stu-att":[{"categories":"on","input feedback":["vibration","tts"],"input selection":"click","pictogram size":"medium"}]}'
'{"stu-att":[{"categories":"on","input feedback":["vibration","tts"],"input selection":"click","pictogram size":"medium"}]}'
)
)
;
INSERT
IGNORE
INTO
`stu_picto`
(
INSERT
IGNORE
INTO
`stu_picto`
(
`id_stu`
,
`id_stu`
,
...
...
sails/roles/database/vars/main.yml
View file @
307681cd
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
database_files_relative_path
:
'
roles/database/files'
database_files_relative_path
:
'
roles/database/files'
database_name
:
pictodb
database_name
:
pictodb
database_user
:
pictodbu
database_user
:
pictodbu
database_user_passwd
:
p1KT0!15.
database_user_passwd
:
r"YjtnB+a4$.M*nJ
database_tests
:
[
caja
]
#[caja, autismojaen] # can be empty
database_tests
:
[
caja
]
#[caja, autismojaen] # can be empty
sails/roles/server/files/local.js
View file @
307681cd
...
@@ -36,11 +36,14 @@ module.exports = {
...
@@ -36,11 +36,14 @@ module.exports = {
* responses over https:// and/or use websockets over the wss:// protocol
* responses over https:// and/or use websockets over the wss:// protocol
* (recommended for HTTP, strongly encouraged for WebSockets)
* (recommended for HTTP, strongly encouraged for WebSockets)
*/
*/
ssl
:
{
// ca: fs.readFileSync(path.join(__dirname, 'ssl', 'development-bundle.crt')),
/* UNCOMMENT FOR HTTPS */
key
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'ssl'
,
'development.key'
)),
/* ssl: {
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'ssl'
,
'development.crt'
)),
ca: fs.readFileSync(path.join(__dirname, 'ssl', '/etc/letsencrypt/live/xxx.yottacode.com/chain.pem')),
key: fs.readFileSync(path.join(__dirname, 'ssl', '/etc/letsencrypt/live/xxx.yottacode.com/privkey.pem')),
cert: fs.readFileSync(path.join(__dirname, 'ssl', '/etc/letsencrypt/live/xxx.yottacode.com/fullchain.pem')),
},
},
*/
/**
/**
* The `port` setting determines which TCP port your app will be
* The `port` setting determines which TCP port your app will be
...
...
sails/src/config/connections.js
View file @
307681cd
...
@@ -26,7 +26,7 @@ module.exports.connections = {
...
@@ -26,7 +26,7 @@ module.exports.connections = {
host
:
'localhost'
,
host
:
'localhost'
,
port
:
3306
,
port
:
3306
,
user
:
'pictodbu'
,
user
:
'pictodbu'
,
password
:
'
p1KT0!15.
'
,
password
:
'
r"YjtnB+a4$.M*nJ
'
,
database
:
'pictodb'
,
database
:
'pictodb'
,
charset
:
'utf8'
,
charset
:
'utf8'
,
collation
:
'utf8_unicode_ci'
collation
:
'utf8_unicode_ci'
...
...
sails/src/config/ssl/letsencrypt.md
View file @
307681cd
...
@@ -56,7 +56,8 @@ Con el contenido para ssl:
...
@@ -56,7 +56,8 @@ Con el contenido para ssl:
```
```
ssl: {
ssl: {
key: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/privkey.pem'),
key: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/cert.pem')
cert: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/fullchain.pem'),
ca: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/chain.pem')
},
},
```
```
...
...
Write
Preview
Markdown
is supported
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