Git Product home page Git Product logo

Comments (9)

lhchavez avatar lhchavez commented on September 14, 2024 1

I did a few changes to the deployment scripts. You should be able to run vagrant destroy, re-download the deploy repo and after you run vagrant up, there should be a local folder called omegaup/ next to Vagrantfile. This folder is synchronized with /opt/omegaup, so you won't need to jump through hoops to get your IDE working!

from deploy.

carlosabcs avatar carlosabcs commented on September 14, 2024 1

Finally, I got it. Thank you very much!

from deploy.

heduenas avatar heduenas commented on September 14, 2024

También puedes conectar tu editor vía ssh a la VM. Has intentado eso?

from deploy.

AtharvaKhare avatar AtharvaKhare commented on September 14, 2024

If you have enough time to invest, "vim editor"(or emacs) would certainly pay off on the longer run. Make sure you update it first sudo apt-get install vim.

Alternatively, /vagrant in the ssh is already synced with the folder containing Vagrantfile on your host computer.

from deploy.

lhchavez avatar lhchavez commented on September 14, 2024

What host operating system do you use? If it's Linux, you can install any application in the VM , launch it and will see that app's window thanks to the X Forwarding of the VM. If you are using OS X, you might be able to install https://www.xquartz.org/ and achieve the same thing (although lacking a Mac, I've never tried it myself. Let @pabo99 know if you manage to get this working!)

If you're in Windows, you can try to flip this flag

deploy/Vagrantfile

Lines 23 to 34 in a654c47

# Sincronizar un folder local con vagrant. Muy útil si quieres desarrollar
# usando un IDE. Esto NO funciona en Windows, solo en Linux / macOS.
#
# La razón es porque el script de instalación intenta crear un symlink en
# /opt/omegaup, y Windows considera esto como una operación privilegiada.
# Existe una manera para usarlo a partir de Windows 10 Build 14972, pero
# necesita que Puppet se actualice con la nueva bandera descrita en
#
# https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/#b1GbewbdoOuFHttq.97
#
# para que se pueda utilizar correctamente.
config.vm.synced_folder "omegaup", "/opt/omegaup", create: true, disabled: true
after carefully reading the warning. Maybe stuff has been updated and now it works. But don't hold your breath on that one :(

@CarlosCordova18 what editor are you trying to use? If it's sublime, that one has the option @heduenas mentions to connect directly using ssh/sftp. If it's another one, one of the Windows-using folks might be able to help you.

from deploy.

carlosabcs avatar carlosabcs commented on September 14, 2024

I'm using VSCode on Fedora 27.
As @lhchavez suggested, I managed to install VSCode on the virtual machine, but it runs slower than expected. I'll search for a way to connect my local VSCode to the virtual machine directly. Otherwise, I'll install Sublime text 😄
Thanks you all for your help!

from deploy.

lhchavez avatar lhchavez commented on September 14, 2024

oh if you are using Fedora, you can enable folder synchronization! it should just work :D

from deploy.

carlosabcs avatar carlosabcs commented on September 14, 2024

The problem is that the folder synchronization of Vagrant takes my local folder and copies it to the virtual machine, not the other way around and since the local folder is initially empty, the folder /opt/omegaup/ in the virtual machine appears empty.

from deploy.

lhchavez avatar lhchavez commented on September 14, 2024

got it. you can run vagrant provision to re-create the contents of the folder.

from deploy.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.