How to run SF7 lucee on linux
angga

angga @angga

About: Hi there, Angga here Welcome

Location:
Jakarta, Indonesia
Joined:
Jan 16, 2024

How to run SF7 lucee on linux

Publish Date: Apr 28
0 0

CommandBox Setup

  1. Download CommandBox for the stable version (it’s recommended to download the one that includes JRE).
  2. Save it to a specific folder and then extract the contents.
  3. Open the terminal, navigate to the extracted commandBox folder, and execute the box file (it’s recommended to set up an alias, see the instructions in this step). Image description
  4. Navigate to the directory ./SoulFaceBackEnd/main/src/web. Image description
  5. For the first execution, run this command:

    server start name=sf7-dev port=8080 cfengine=lucee@5.3.7
    

    Note: You can adjust the name and port as needed.

  6. For subsequent executions, run: server start sf7-dev

  7. Login Page.
    Image description

  8. If you are logged in.
    Image description

Setting up CommandBox Alias for Easy Execution

  1. Open the terminal.
  2. Edit the file ~/.bashrc or ~/.zshrc if your default terminal shell is Zsh by running the following command:

    sudo nano ~/.zshrc 
    

    (You can use nano or vim depending on the editor you prefer).

  3. Add the following line:

    ...
    alias cmbox={YOUR_COMMANDBOX_PATH}
    ...
    

    Here, cmbox is the alias you'll use to execute CommandBox in the terminal. You can customize the alias name as you like. {YOUR_COMMANDBOX_PATH} should be replaced with the path where you extracted CommandBox.

  4. Run source ~/.zshrc to apply the changes and restart your Zsh shell configuration.

  5. Now, you can simply run cmbox to start CommandBox!
    Image description

Commands You Can Use in the Command Box

  • server start {project_name} – Start your project server.
  • server restart {project_name} – Restart your project server.
  • server stop {project_name} – Stop a running project server.
  • server list – Show all projects on the server, whether running or stopped.

Note: You can add optional parameters such as port, javaHome, or others as needed.

Comments 0 total

    Add comment