• Content count

  • Joined

  • Last visited

Community Reputation

92 Excellent

About joer80

  • Rank
    Sr. Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Texarkana, TX

Recent Profile Visitors

2,782 profile views
  1. I had to do this as well!
  2. I did some testing and it seems if I turn on PHP OPCache it hurts more than helps. Has anyone else noticed this?
  3. Its working now! I think the "npm --unsafe-perm" i did it!
  4. When I login as root and run npm i it says: npm WARN prefer global node-gyp@3.6.2 should be installed with -g > node-sass@4.5.3 install /home/goac/ > node scripts/install.js module.js:471 throw err; ^ Error: Cannot find module '/home/goac/websitehere/site/templates/client/node_modules/node-sass/scripts/install.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:389:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:504:3 On Centos
  5. I get an error with a clean install when I run "npm i" Error: Cannot find module '/home/goac/mywebsitehere/site/templates/client/node_modules/node-sass/scripts/install.js' at Function.Module._resolveFilename (module.js:469:15)
  6. If you need more default throughput you could always mount user assets, modules and templates separately instead of the whole sites folder. I just did it for convenience. Local storage on each ec2 machine would be a bit quicker but you have to sync them somehow. Using their deploy tools is one way you can do it and push out updates without something like rsync. The wire files don't change that much so I don't mind doing a deploy for those. I just wanted sftp access to the templates to be able to make changes instantly as needed, instead of a versioned setup since I am the only dev and its faster for me. I guess you could always do a hybrid approach and do a deploy for template changes and efs for user assets. Another thing to consider is if you turn on their cdn to serve static assets, I would matter even less. Your EFS is just the authority/pull point.
  7. Limits page says efs has a default throughput of 3 Gigabytes per second each and you can request more. You can mount 10 and files are redundant across multiple Azs/datacenters. It can go to petabyte levels.
  8. No, both the rds and the efs are managed clusters.
  9. I ended up getting this working, but instead of doing the assets folder I did the whole sites folder. That way I could install a module and it go to all http servers. I also added my ec2-user to the webapp group so I could sftp into the share and edit files.
  10. found it! $config->pagefileExtendedPaths = true;
  11. What is the method for telling processwire to save files by another method other than pageid to support a large number of pages on one website? I cant remember. Thanks!
  12. Here is an example config file for how to tell elastic beanstalk to mount a shared file system on the ec2 instances on boot. I am going to use this to give it a try I think. You just create this file in your project folder before you upload it. Assuming I get something like /pw-assets/ mounted in my web server, is it hard to tell PW to use that location for the assets folder? Or do I need to do have the boot image make a symbolic link that connects the 2?
  13. Thank you for the details! Very interesting! I thought about doing an rsync script approach like that for my setup, and having a master of sorts that sends files to the other instances, but I was thinking as you add ec2 instances, they could be a part of the load balanced pool before they have all of the files locally which could cause missing images on pages. It could be 15-30 minutes before the transfer starts, and that could take a bit if you have a lot of files, and if your master goes down, you can't admin without selecting a new master. I was thinking of going another route and using the Elastic File System service and having all of the EC2 instances mount it on boot and use it to store the assets folder. Sessions can be served out of RDS. That way any ec2 can be a master and can upload files to the network share and they are ready as soon as they boot.
  14. I know it mentions there is a client going with a load balanced solution. In his case, how does he keep the assets folder synced across all of the ec2 instances?
  15. I built this one on bootstrap 4 with a number of extras. ie. Animate on scroll for photos and carousels, navbar animate on scroll, lightbox, google map embed, and font awesome. I am using the page tree as a row builder instead of navigation. I detached the menu system from the page tree to give more control on external links, single page website situations that need to link to sections, and add new window target options. It also lets you have different footer links vs header links this way. You can add something like a privacy policy to the footer and not the header and still have one place that controls your menus. Extensions used: Color Picker, Inputfield ACE Extended, Google map marker, MarkInPageTree, Media Library, and Hana Code.