Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the plugin with no config.json #14

Open
jcano opened this issue Aug 3, 2016 · 2 comments
Open

Using the plugin with no config.json #14

jcano opened this issue Aug 3, 2016 · 2 comments
Labels

Comments

@jcano
Copy link

jcano commented Aug 3, 2016

EDIT: Submitted by mistake before writing a message.

I'm using NodeBB on Heroku and I need S3 for all the file uploads. I installed the plugin using npm and then pushed the directory back up to Heroku. I'm configuring everything as environment variables, so access key, secret key, host and bucket are all defined in the Heroku control panel. As I understand, path would be set by default to /.

At the moment I'm getting two errors, one on the console:

warn: [plugins/nodebb-plugin-s3-uploads-updated] Mapped path 's3 => /app/node_modules/nodebb-plugin-s3-uploads-updated/public' not found.

And one on the admin control panel:

Internal error.
Oops! Looks like something went wrong!
/api/admin/plugins/s3-uploads
Cannot find module './../../config.json'

This second one might be the issue here, as I have no config.json on the server. All variables for NodeBB configuration are also defined as environment variables.

@jcano jcano changed the title Error messages when deploying on Heroku with evironment variables Using the plugin with no config.json Aug 3, 2016
@jcano
Copy link
Author

jcano commented Aug 3, 2016

As a clarification, the files are uploaded to S3 but I cannot see the plugin config options because of the config.json error.

@LewisMcMahon
Copy link

it needs a config.json currently to determine your site url and a few other things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants