Consensys / Consensys/Token-Factory
I tried to run token factory in docker container but it did not work.
- Dominant language
- JavaScript
- Stars
- 473
- Forks
- 295
- PR merge metrics
- No merged PRs in 30d
Description
**Summary**
I got ```HumanStandardToken is not defined``` error when I tried to run token factory in docker container. Can you help me with my issue?
**Steps to Reproduce**
1. git clone https://github.com/ConsenSys/Token-Factory.git
1. create Dockerfile
1. create docker-compose.yml
1. docker exec. ```$docker exec -it token-factory /bin/bash```
1. change ```opts.useFsEvents = false```. ```#vim /usr/local/lib/node_modules/truffle/build/cli.bundled.js``` (*1)
1. truffle serve
1. access localhost:8080 and create token
* Dockerfile
```
FROM node:latest
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install vim -y
RUN npm install
RUN npm install -g webpack
RUN npm install -g truffle
```
* docker-compose.yml
```
version: '3.4'
services:
app:
build: .
tty: true
image: token-factory:latest
container_name: token-factory
working_dir: /home/node/app
volumes:
- ./Token-Factory/:/home/node/app
ports:
- "8080:8080"
```
* cli.bundled.js
```
// Enable fsevents on OS X when polling isn't explicitly enabled.
//if (undef('useFsEvents')) opts.useFsEvents = !opts.usePolling;
// If we can't use fsevents, ensure the options reflect it's disabled.
//if (!FsEventsHandler.canUse()) opts.useFsEvents = false;
opts.useFsEvents = false
```
*1 https://github.com/trufflesuite/truffle/issues/734
**Expected Results**
No error occurred.
**Actual Results**
```HumanStandardToken is not defined``` error occurred.
```
app.js:50443 Uncaught ReferenceError: HumanStandardToken is not defined
at Constructor.executeFunction (app.js:50443)
at Object.ReactErrorUtils.invokeGuardedCallback (app.js:12386)
```

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.