Comments (5)
Hello
You need to set the env variables for your amazon s3 storage etc.
ADMIN_MAIL
IMAGER_S3_BUCKET
e.g. mytabloro
IMAGER_S3_KEY
IMAGER_S3_SECRET
MONGOHQ_URL
e.g. mongodb://heroku_app...
MONGOLAB_URI
e.g. mongodb://heroku_....
NODE_ENV
e.g. production
NODE_PATH
e.g. ./config:./app/controllers:./lib
PORT
e.g. 80
from tabloro.
Thanks a lot for the response! :)
I have added the environment variables in a startup script before launching the server (the mongodb ones I omitted since I am using a local mongodb server in the default port), e.g.,
#!/bin/bash
export ADMIN_MAIL=<my_real_email>
export IMAGER_S3_BUCKET=<my_real_s3_bucket>
export IMAGER_S3_KEY=<my_real_s3_key>
export IMAGER_S3_SECRET=<my_real_s3_secret>
export NODE_ENV=development
export NODE_PATH=./config:./app/controllers:./lib
npm start
... and now when I upload a game piece I see a message saying that it successfully created the piece, BUT it does not show it onscreen (and indeed, the S3 bucket remains empty).
I attach the output of the javascript console after the creation, in case it is useful (basically, it is making hundreds of failed requests for the image).
localhost-1466178899102.log.zip
Any idea of what can be going wrong, or where to look for further logs about the upload process? also, is there any way to setup a local Tabloro server that does not rely on S3?
PS: if you find it useful, I could document the installation process of a local server in the README file of the project (once I get it to work) ;)
from tabloro.
Update: Playing around, I have noticed that the URL that tabloro tries to GET for the images (http://<bucketname>.s3-<region>.amazonaws.com/
) is different from the ones that images uploaded (manually) in my bucket have (https://s3.<region>.amazonaws.com/<bucketname>/
).
Does this have anything to do with the upload seemingly failing? Does the S3 bucket have to be setup in any special way (e.g., permissions, etc.)?
Thanks!
from tabloro.
OK, I think I got it, the bucket has to be created in the "us-standard" region for imager to work, see madhums/node-imager#77
(Probably this should be said somewhere in some README... not sure if imager or tabloro's)
from tabloro.
Yes, sorry there is this bug with US buckets
from tabloro.
Related Issues (9)
- Rotate Piece not available for items from spritesheet HOT 5
- Error when creating new pieces / box on tabloro.com HOT 16
- Cannot set the number of cards HOT 3
- Still Unable to Rotate Pieces from a Spritesheet?
- tabloro.com is down? HOT 2
- D20 Dice
- Impossible to delete piece in a game box HOT 5
- tabloro.com offline HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabloro.