Posts

ubuntu 13.10 ftp Connection attempt failed with "ECONNREFUSED - Connection refused by server

Image
0 i have done a little google searching on this one, but im not really finding a solution that is helping. I have unbuntu 13.10 LAMP (64bit) installed on VM-VirtualBox running on Windows 7x64. After trying to set up the LAMP using tasksel (a complete failure), i ended up installing all components through the GUI using synaptic without any problems. I have then installed a wordpress website on the LAMP and am able to access it both locally on the virtual machine and via my static ip address over the web from my iphone. I am now having problems with permissions i believe as i am unable to add/remove plugins and media to the site.It brings up an ftp connection window asking for details and when i insert the appropriate information i get errors such as from wordpress ERROR: There was an error connecting to the ...

String comparison not working in Javascript when comparing an environment variable with a constant

Image
2 We have a simple React application, created with CRA 1.x. We installed dotenv to use environment variables on the project and our variables are included on the .env and .env.development files like this: .env REACT_APP_LOGGER=LOGGER .env.development REACT_APP_LOGGER=NO_LOGGER Then in the code we have this logic: if(process.env.REACT_APP_LOGGER === "LOGGER") { // do something } On local builds with webpack 4 in development mode the if is true, and on production mode is false. But on azure, in both cases is false process.env.REACT_APP_LOGGER === "LOGGER" // false We have checked the value of process.env.REACT_APP_LOGGER and it is "LOGGER" type of string but the code is returning weird values: console.log(process.env.REACT_APP_LOGGER) console.log...