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

Deploying on AWS #105

Open
cbaci opened this issue Feb 8, 2018 · 3 comments
Open

Deploying on AWS #105

cbaci opened this issue Feb 8, 2018 · 3 comments

Comments

@cbaci
Copy link

cbaci commented Feb 8, 2018

So I'd like to deploy this on my AWS EC2 instance. I'm running on Amazon Linux AMI. I've deployed and installed everything via npm. I'd like to bypass the Harp server and use my own, already functioning Apache.

`[ec2-user@ip-XXX-XX-XX-XXX styleguide]$ cd /structure/_node-files && node watch.js
-bash: cd: /structure/_node-files: No such file or directory
[ec2-user@ip-XXX-XX-XX-XXX styleguide]$ cd styleguide/structure/_node-files && node watch.js
Starting Server on port 8000..
PROGRESS:94

fs.js:439
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES, permission denied '/var/www/html/styleguide/styleguide/structure/_node-files/modules/../../../../styleguide/_data.json'
at Object.fs.openSync (fs.js:439:18)
at Object.fs.writeFileSync (fs.js:978:15)
at module.exports (/var/www/html/styleguide/styleguide/structure/_node-files/modules/write-date.js:34:8)
at Object.module.exports.start (/var/www/html/styleguide/styleguide/structure/_node-files/modules/watcher.js:16:5)
at ClientRequest.http.get.on.waitingTheServer (/var/www/html/styleguide/styleguide/structure/_node-files/watch.js:49:25)
at ClientRequest.g (events.js:180:16)
at ClientRequest.emit (events.js:95:17)
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1751:21)
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:152:23)
at Socket.socketOnData [as ondata] (http.js:1646:20)`

I guess I'm not sure I want to own port 8000 on a server that's already serving other stuff. Is there a best practice for deploying non-locally?

@caiovaccaro
Copy link
Contributor

Hi, you need to run the compilation and serve just static HTML files ;)

@cbaci
Copy link
Author

cbaci commented Feb 23, 2018

yep, I finally figured that out. Is Xcode req'd for generating the html files?

@caiovaccaro
Copy link
Contributor

caiovaccaro commented Feb 23, 2018 via email

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