Skip to content

Commit daf5a51

Browse files
committed
Fix missing roles file on project IDX platform.
1 parent 6d3fcba commit daf5a51

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.idx/dev.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@
8888
mongoimport --db json_scada --collection protocolConnections --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_connections_linux.json &&
8989
mongoimport --db json_scada --collection realtimeData --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_data.json &&
9090
mongoimport --db json_scada --collection processInstances --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_process_instances.json &&
91+
mongoimport --db json_scada --collection roles --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_roles.json &&
9192
mongoimport --db json_scada --collection users --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_users.json
9293
";
9394
init-postgresql = "
95+
mkdir -p ~/json-scada/log &&
9496
mkdir -p ~/postgres &&
9597
initdb -D ~/postgres &&
9698
cp ~/json-scada/platform-nix-idx/postgresql.conf ~/postgres/postgresql.conf &&
@@ -117,7 +119,7 @@
117119
# Example: start a background task to watch and re-build backend code
118120
# watch-backend = "npm run watch-backend";
119121
start-mongodb = "/usr/bin/mongod -f ~/json-scada/platform-nix-idx/mongod.conf";
120-
start-supervisor = "(supervisord -c ~/json-scada/platform-nix-idx/supervisord.conf &)";
122+
start-supervisor = "supervisord -c ~/json-scada/platform-nix-idx/supervisord.conf";
121123
};
122124
};
123125
};

platform-nix-idx/dev.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@
8888
mongoimport --db json_scada --collection protocolConnections --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_connections_linux.json &&
8989
mongoimport --db json_scada --collection realtimeData --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_data.json &&
9090
mongoimport --db json_scada --collection processInstances --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_process_instances.json &&
91+
mongoimport --db json_scada --collection roles --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_roles.json &&
9192
mongoimport --db json_scada --collection users --type json --file ~/json-scada/demo-docker/mongo_seed/files/demo_users.json
9293
";
9394
init-postgresql = "
95+
mkdir -p ~/json-scada/log &&
9496
mkdir -p ~/postgres &&
9597
initdb -D ~/postgres &&
9698
cp ~/json-scada/platform-nix-idx/postgresql.conf ~/postgres/postgresql.conf &&
@@ -117,7 +119,7 @@
117119
# Example: start a background task to watch and re-build backend code
118120
# watch-backend = "npm run watch-backend";
119121
start-mongodb = "/usr/bin/mongod -f ~/json-scada/platform-nix-idx/mongod.conf";
120-
start-supervisor = "(supervisord -c ~/json-scada/platform-nix-idx/supervisord.conf &)";
122+
start-supervisor = "supervisord -c ~/json-scada/platform-nix-idx/supervisord.conf";
121123
};
122124
};
123125
};

platform-nix-idx/supervisord.conf

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
99
username= ; default is no username (open server)
1010
password= ; default is no password (open server)
1111

12-
[unix_http_server]
13-
chown = user:user
14-
1512
[supervisord]
1613
logfile=/tmp/supervisord.log ; main log file; default $CWD/supervisord.log
1714
logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB

0 commit comments

Comments
 (0)