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

Running $ npm run deploy -- s3://$S3_BUCKET_NAME/dist command shows error #60

Closed
Nazarah opened this issue Apr 12, 2018 · 2 comments
Closed

Comments

@Nazarah
Copy link

Nazarah commented Apr 12, 2018

I am right now in the part to build and run the application.
However, whenever I put the command $ npm run deploy -- s3://$S3_BUCKET_NAME/dist it shows the following error:
image

Do I need to run the command in the location where package.json file for mastarm is located`?

NOTE:
This is to mention that I previously installed yarn as instructed in the deployment document.
I used to following commands instead of cmdtest

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn

I previously installed yarn using cmdtest, but it created some problems.
Later I uninstalled cmd and all its dependencies.

the output for those actions are given in the following text files.
installing yarn fresh.txt
unintalling cmdtest and dependency and installing yarn.txt

@Nazarah
Copy link
Author

Nazarah commented Apr 12, 2018

@landonreed can you please help me out a bit? Thanks.

@landonreed
Copy link
Contributor

@Nazarah, the s3 bucket should be included as a configuration option in the settings.yml config file. For example:

entries:
  - lib/main.js:dist/index.js
  - lib/index.css:dist/index.css
s3Bucket: example-bucket-name
application:
  data:
.
.
.

You would then run yarn deploy --config /path/to/your/config/dir/ in the root directory for the datatools-ui repository.

landonreed added a commit that referenced this issue Dec 7, 2018
Mapzen (and thus the valhalla routing service) is no longer in operation. This addresses #60, but
needs to be cherry-picked into a separate branch for merging into dev.

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

No branches or pull requests

2 participants