Where does nanoc create my site on windows? - ruby

http://nanoc.stoneship.org/docs/3-getting-started/
I type nanoc create_site tutorial using cmd command line within a folder. It says it created the site but I can't find it in current directory where I launch the command.

Strange. Are you sure you have the permission to write to that folder? Try creating a site on the desktop, I never had such an issue under Windows.

Related

How do I edit Laravel app source code when developing in Docker?

I am trying to develop Laravel app using WSL 2 and Docker. I have followed official Laravel instructions for Windows development (https://laravel.com/docs/9.x/installation#getting-started-on-windows).
in WSL console I run:
curl -s https://laravel.build/example-app | bash
cd example-app
./vendor/bin/sail up
Everything seems to be fine (example-app is running on http://localhost), except I don't know how to do the actual development, i.e. edit the sources to see changes in the app.
I believe I have to somehow 'mount' directory sources from inside WSL/Docker into my Windows file system, but I don't know how.
I don't want to use VSCode (Laravel docs suggest that), I want to use IDE of my choice and access project files in general.
In the end I found out that this problem boils down to accessing WSL file system - Docker/Laravel files are synced automatically from there.
WSL file-system can be accessed through a path that looks something like this:
\\wsl$\Ubuntu\home\your-username\example-app
For some reason this was not visible in the Network section of Windows Explorer. You must type it manually or use the following trick:
Open WSL Linux console and go to the folder with your Laravel app. Then type the following:
explorer.exe .
(notice the dot)
This will open Windows Explorer at your current location and you will be able to copy the path and paste into your IDE.

Install4j I cannot create a simple symbolic link to the users home directory Applications for mac DMG

Im trying to add a symlink target as "Configure Additional Files in the DMG" in install4j.
I set the Symlink target to "~/Applications" which is the syntax that works fine if doing "ln -s" from the command line.
I set the "Name in DMG" to "Applications".
But it doesnt work, I get some kind of folder that doesnt work.It looks like a symlink because it has an arrow on it but when I click on it I get "the operation cant be completed because the original item for Applications cant be found".
Maybe there is a compiler variable I should use?
All Im trying to achieve is to have the Users Applications folder inthe install so they can simply drag the package into it like for many other application installers.

Opening Bash on Windows on a specific folder

I started using bash on the Windows anniversary update and recently I tried to start an Android project but want to open the terminal on the project folder. I tried googling this but couldn't find any solutions that allowed for this through command line.
I didn't find a way to set a default folder so I just created a script that would cd into the right folder and ran that every time I opened bash

Using Automator to copy files, execute Cordova not working

I'm trying to create an Automator workflow which:
gets files and folders of a directory
copies those files and folders to another directory (with overwrite)
run a shell command: cordova prepare
The issue i have is, I'm working in one folder and wanting to be able to run an application that does the above, rather than manually do it every time i need to refresh the Cordova app.
The first two of the above works fine, i see the files copy/overwrite as they should, but when it gets to the shell command it returns the error code "cordova - command not found (127)"
Is it because I have Cordova installed for my user only and it wont execute as root (or whatever OS X the Automator user is)? If so how would i get it to run as another user or install it globally?
I've tested a simple command such as "cd ~/Sites/ && open ./" which works fine without error. It's just the cordova not found thing which i have going on at the moment.
Thanks in advance.
When you call the cordova command, are you using the entire path to the Cordova app? Something like this:
/Applications/Cordova.app

I made an executable using OCRA, but it doesnt find the chromedriver in other computers

Hi I made a script to access a website using watir, then I used OCRA to create the exe file, but when I run the exe file in an other computer without ruby intalled, it doesnt find the chromedriver.exe.
I not allowed to install ruby on that computer, but I create the same path and copy the chromedriver like it was on my computer but not luck (if I change the location of the chromedriver on my computer it doesnt work too).
Thanks for any help
create the same path and copy the chromedriver like it was on my computer
Did you also add that directory to your PATH?
Or can you copy the missing program to a location in your PATH?

Resources