Commit 307681cd by Fernando Martinez

Merge branch 'develop' of http://scm.ujaen.es/softuno/pictogram into develop

parents 4b906d96 fb5ce783
......@@ -7,6 +7,8 @@ elif [ -e "/vagrant/src/app.js" ]; then
cd /vagrant/src && forever start app.js --debug
elif [ -e "/home/vagrant/sync/src/app.js" ]; then
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
echo "-- app.js not found, cannot run pictogram server"
exit
......
......@@ -2,10 +2,9 @@ SET foreign_key_checks=0;
DROP USER IF EXISTS 'pictodbu';
DELETE FROM mysql.user WHERE user='pictodbu';
FLUSH PRIVILEGES;
CREATE USER 'pictodbu'@'localhost' identified by 'p1KT0!15.';
GRANT USAGE ON *.* TO 'pictodbu'@'localhost';
CREATE USER 'pictodbu'@'%' identified by 'r"YjtnB+a4$.M*nJ';
DROP DATABASE IF EXISTS pictodb;
CREATE DATABASE pictodb;
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;
......@@ -73,7 +73,7 @@ INSERT IGNORE INTO `student` (
'es-es',
(SELECT id from office WHERE email='centrodestrezas@gmail.com'),
'{"stu-att":[{"categories":"on","input feedback":["vibration","tts"],"input selection":"click","pictogram size":"medium"}]}'
)
);
INSERT IGNORE INTO `stu_picto` (
`id_stu`,
......
......@@ -2,5 +2,5 @@
database_files_relative_path: 'roles/database/files'
database_name: pictodb
database_user: pictodbu
database_user_passwd: p1KT0!15.
database_user_passwd: r"YjtnB+a4$.M*nJ
database_tests: [caja] #[caja, autismojaen] # can be empty
......@@ -36,11 +36,14 @@ module.exports = {
* responses over https:// and/or use websockets over the wss:// protocol
* (recommended for HTTP, strongly encouraged for WebSockets)
*/
ssl: {
// ca: fs.readFileSync(path.join(__dirname, 'ssl', 'development-bundle.crt')),
key: fs.readFileSync(path.join(__dirname, 'ssl', 'development.key')),
cert: fs.readFileSync(path.join(__dirname, 'ssl', 'development.crt')),
/* UNCOMMENT FOR HTTPS */
/* ssl: {
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
......
......@@ -26,7 +26,7 @@ module.exports.connections = {
host: 'localhost',
port: 3306,
user: 'pictodbu',
password: 'p1KT0!15.',
password: 'r"YjtnB+a4$.M*nJ',
database: 'pictodb',
charset : 'utf8',
collation : 'utf8_unicode_ci'
......
......@@ -56,7 +56,8 @@ Con el contenido para ssl:
```
ssl: {
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')
},
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment