I’m on a mission this year to do my personal projects on my free time after work. I decided to try figma and create a simple layout.
Login to your dreamhost contol panel and go to Domains Tab
Select a domain that you need to configure for nodejs.
- Set public folder path
- Check Passenger and nodejs
- Save your changes
Still under Domains tab, click Mongrel and Proxy and under Set Up A Proxy Server Port
- Select your domain and remove everything in input box
- Set the PORT number that you specify in your index.js or app.js.
Check your nodejs website, it should be up and running. Chow!
I’ve been having a caching issue in Symfony for the last couple of days now. I know I messed up something in MAMP/PHP settings, I just don’t remember what. So after a couple of searches, I found a hacky way to solve this issue by adding this opcache_reset() function under /web/app_dev.php.
$kernel = new AppKernel('dev', true); // $kernel->loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response); opcache_reset();